- Joined
- Jun 10, 2013
- Messages
- 472
Hey I have this teleport ability which teleport units to any location on the map how ever I want a requirement where the location must be visible in order to teleport. but I have no idea how to do so :/
Any help would be much appreciated
Any help would be much appreciated
-
Teleport
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Teleport
-
-

Actions
-


Set TempPoint = (Position of (Casting unit))
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units within 500.00 of TempPoint matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
-



Loop - Actions
-




Set TempPoint2 = (Position of (Picked unit))
-




Special Effect - Create a special effect at TempPoint2 using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_TempPoint2)
-




Set TempPoint2 = (Target point of ability being cast)
-




Unit - Move (Picked unit) instantly to TempPoint2
-




Custom script: call RemoveLocation(udg_TempPoint2)
-




Set TempPoint2 = (Position of (Picked unit))
-




Special Effect - Create a special effect at TempPoint2 using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_TempPoint2)
-
-
-


Custom script: call RemoveLocation(udg_TempPoint)
-
-

