- Joined
- Jul 8, 2015
- Messages
- 4
Hey there!
I'm starting with some turn-based project. The first thing I want to make is making my movement, based on teleportation(Later I will make it normal movement, but for testing I don't need it). My problem is, when I order unit to stop(in trigger), it doesn't stop. Hold Position doesn't work aswell. Any solutions? Where to place the stop order action?
I'm starting with some turn-based project. The first thing I want to make is making my movement, based on teleportation(Later I will make it normal movement, but for testing I don't need it). My problem is, when I order unit to stop(in trigger), it doesn't stop. Hold Position doesn't work aswell. Any solutions? Where to place the stop order action?
-
BlinkMove
-
Events
-
Unit is ordered targeting a point
-
-
Conditions
-
Or - Multiple conditions
-
Issued order equal to smart
-
Issued order equal to move
-
Issued order equal to patrol
-
-
-
Actions
-
Set TempPoint1 = position of unit
-
Set TempPoint2 = event response - target point of issued order
-
If (real - math - distance between TempPoint1 and TempPoint2 less than or equal to 512)
-
Then - Actions
-
Unit - Set mana of ordered unit to (mana of ordered unit - 1)
-
Unit - move unit to TempPoint2
-
Custom script: call RemoveLocation(udg_TempPoint1)
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
If Mana of triggering unit equal to 0
-
Then Set (Movecounter of owner) = (Movecounter of owner - 1)
-
Else do nothing
-
-
-
Else - Actions
-
Set TempPoint3 = point with polar offset - TempPoint1 offset by 512 towards angel between TempPoint1 and TempPoint2
-
Unit - move unit to TempPoint3
-
Custom script: call RemoveLocation(udg_TempPoint3)
-
If Mana of triggering unit equal to 0
-
Then Set (Movecounter of owner) = (Movecounter of owner - 1)
-
Else do nothing
-
-
-
Last edited: