- Joined
- Feb 8, 2010
- Messages
- 13
hey guys, how can you make a spell dummy move to a certain location or move to the targetted unit.
tnx
tnx
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Untitled Trigger 001

Actions


Set temppoint = wherever youre going to move


Unit - Move (Dummy unit) instantly to temppoint


Custom script: call RemoveLocation(udg_temppoint)
Unit - Move (Dummy unit) instantly to wherever
Untitled Trigger 001

Events

Conditions

Actions


Unit - Order No unit to Move To ((Center of (Playable map area)) offset by (0.00, 0.00))
Trigger
Events

Time - Every 0.03 seconds of game-time
Conditions
Actions

Set Points[1] = (Position of (your unit))

Set Points[2] = (Points[1] offset by 15.00 towards (Facing of (your unit)))

Unit - Move (your unit) to Points[2]

Custom script: call RemoveLocation (udg_Points[1])

Custom script: call RemoveLocation (udg_Points[2])
Events

Time - Every 0.03 seconds
Conditions

\\Some Conditions here.
Actions

Set dummyunit = YOURDummyUnit

Set dummy_loc = Position of (YOURDummyUnit)

Unit - Move Instantly to dummy_loc offset by 10.00 towards [color="red"]angle[/color]

Custom script: call RemoveLocation(dummy_loc)

enumerate units around the dummy unit after each iteration checking for the target.
If (All conditions are true) then do (Actions) else do (Actions)
If - Conditions

(Distance between Points[1] and Points[2]) Less than or Equal to 15.00
Then - Actions

Unit Group - Remove (Picked unit) from MissileGroup

Unit - Kill (Picked unit)

Unit - Remove (Picked unit) from the game
Pharaoh_ said:it's just the fact that distance seems more accurate.
