-OverpoweR-
Member
- Reaction score
- 13
Hellow fellas, i am curious, if i store Position of [Hero] in a Point Variable, than when i need to, Order Unit to go to [Stored Point Variable] will the Unit go Wherever the Position of [Hero] Currently IS, or where it was when the variable got created? , Uhm i think i made it look like a lot more troublesome than it looks but please,feel free to ask anything that might make this more clear for you to answer :thup:
PS. Ok it doesnt work, i tried it ,eitherway, can you look at this trigger and tell me if Anything is Wrong,or not efficient or whatsoever to complete its function, so, i need Knight, to go Footmans position,no matter where he is on the map , and when he reaches within 200 radius of Footman,he'll stop.
PPS. The Trigger does execute exatly as i want, but since im a newbie, i dont know if there are ... Leaks or whatsoever, something that might mess up something in the map gameplay , never took the time to look into Leaks,and how to clean em up.
PS. Ok it doesnt work, i tried it ,eitherway, can you look at this trigger and tell me if Anything is Wrong,or not efficient or whatsoever to complete its function, so, i need Knight, to go Footmans position,no matter where he is on the map , and when he reaches within 200 radius of Footman,he'll stop.
Trigger:
- Untitled Trigger 001
- Events
- Time - Every 0.50 seconds of game time
- Conditions
- Actions
- Set FootmanPoint = (Position of Footman)
- Unit - Order Knight 0001 <gen> to Move To FootmanPoint
- Set KnightPoint = (Position of Knight)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Distance between (Position of Footman) and (Position of Knight)) Less than or equal to 200.00
- Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Events
PPS. The Trigger does execute exatly as i want, but since im a newbie, i dont know if there are ... Leaks or whatsoever, something that might mess up something in the map gameplay , never took the time to look into Leaks,and how to clean em up.