Here's the problem. I'm trying to use a system to save locations for entering buildings. To do this is have burrowed zerg units under the buildings that are enterable, the player who owns this and the type of unit is used to know which building is being entered. You enter a building using an SCV system, move it out of the small location and a switch is set called 'action button'. Once 'action button' is set, the game detects which unit is burrowed and who owns it in the location that follows your hero to move your player into the correct building. This is where it goes wrong... I think? I'm guessing it has to do with a problem detecting the burrowed unit in the locations but I can't be sure here are the triggers:
CODE
Trigger("Player 1"){
Conditions:
Always();
Bring("Player 1", "Terran SCV", "Action Button", Exactly, 0);
Actions:
Move Unit("Player 1", "Terran SCV", All, "Anywhere", "Action Button");
Set Switch("Action Button", set);
Wait(1000);
Set Switch("ACtion Button", clear);
Preserve Trigger();
Comment("Action Button Go!");
}
This activates the 'action button' switch and deactivates it after 1 second.
CODE
Trigger("Player 1"){
Conditions:
Always();
Switch("Action Button", set);
Bring("Player 3", "Infested Terran", "Hero1", Exactly, 1);
Bring("Player 1", "Protoss Dark Templar", "Map", Exactly, 1);
Actions:
Move Unit("Player 1", "Protoss Dark Templar", All, "Hero1", "Home- Enter");
Preserve Trigger();
Comment("Home- Enter");
}
This trigger is where it goes wrong, (I think). The DT never moves. What did I do wrong with those triggers?
-----------------------------------------------------------------------------------------------
ADDITION:
2nd Question: How do I make a human player ally vision a computer player so that the computer player see's if a human player has a cloaked unit and is able to attack it?