- Joined
- May 14, 2008
- Messages
- 3
Lets say if a unit like a ghoul entered a Region and then i want to order that unit to go to another region becuase it needs to follow a certin path. but the condition is that the trigger unit must be owned by a player.
Am i close to the function i want?
Please hlep.
JASS:
function MoveToLocation takes nothing returns nothing
call GetUnitsInRectAll(GetRectCenter(Undead_Top_Left_Spawn)
call IssuePointOrderLoc(GetUnitsInRectOfPlayer(GetRectCenter(Undead_Top_Left_Spawn), Player(0)), attack, GetRectCenter(Top_Lane_Attacks_Here))
endfunction
Am i close to the function i want?
Please hlep.