Set up two locations, one in the area you want to teleport from, and one in the area you want to teleport to. Make a trigger with:
Conditions:
Current Player brings at least 1 (unit name) to location 1
Actions:
remove 1 (unit name) at location 1
create 1 (unit name) at location 2
preserve trigger
QUOTE(InfusedEMP @ Jul 2 2005, 11:15 AM)
Set up two locations, one in the area you want to teleport from, and one in the area you want to teleport to. Make a trigger with:
Conditions:
Current Player brings at least 1 (unit name) to location 1
Actions:
remove 1 (unit name) at location 1
create 1 (unit name) at location 2
preserve trigger
[right][snapback]250508[/snapback][/right]
Ugh... this will also refresh the unit's states.
You should insted do:
Conditions:
Current Player brings at least 1 -unit- to 'location 1'
Actions:
Move all -unit- owned by Current Player at 'location 1' to 'location 2'
| Trigger |
| Conditions: |
| ¤ Current Player brings at least 1 unit to 'location 1' |
| Actions: |
| ¤ Move all units owned by Current Player at 'location 1' to 'location 2' |
Also remember to preserve trigger if you want more than one unit to be transportable.
QUOTE(indecisiveman @ Jul 2 2005, 02:17 PM)
Also remember to preserve trigger if you want more than one unit to be transportable.
[right][snapback]250879[/snapback][/right]
can anyone say (center view)?!?!?!?!?
QUOTE(Devil_O_Duce @ Jul 2 2005, 01:54 PM)
can anyone say (center view)?!?!?!?!?
[right][snapback]250935[/snapback][/right]
Why would he center view...
Actually, center viewing depends. If the game it's used it is an "RPG", then it should be center viewed. On the other hand, if that's a teleport for a massing game, then you shouldn't center view it.
If you want certain units to be teleported you could do
Conditions:
Current Player brings at least 1 [Unit] to 'location 1'
Actions:
Move all [Unit] owned by Current Player at 'location 1' to 'location 2'
If you want any unit just do
Conditions:
Always
Actions:
Move all [Unit] owned by Current Player at 'location 1' to 'location 2'
Preserve Trigger
Wrathlord, those two triggers will do exactly the same thing. The only difference is that if you don't have hyper triggers, the bottom one won't react as quickly as the top one will.
One of my biggest pet peeves is when a map maker doesn't center view when moving your only unit. Don't forget it!
Why will the bottom one be slower, Heimdal? It doesn't even have a real condition to check... StarCraft checks all its triggers in one go, it doesn't check any conditions more often than any others.
I would think that the two would be equally fast-reacting, except that the top one is nicer.