So i created a spell to move the caster to it's position, 5 seconds back in time. But it's not working and i can't find the problem.
Wtf, reading this i see that i forgot one event. *goes on testing*
Edit: it works now nvm this thread XD
PT learn
Events
Conditions
Actions
Set PT_caster = (Triggering unit)
Trigger - Turn on Thomas Position <gen>
Trigger - Turn off (This trigger)
Thomas Position
Events
Time - Every 1.00 seconds of game time
Conditions
(PT_caster is alive) Equal to True
Actions
Set PT_counter = (PT_counter + 1)
Set PT_parray[PT_counter] = (Position of PT_caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PT_counter Greater than 6
Then - Actions
Custom script: call RemoveLocation (udg_PT_parray[udg_PT_integer - 6])
Else - Actions
Do nothing
Past Tense
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Past Tense
Actions
Unit - Order PT_caster to Stop
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PT_counter Less than or equal to 6
Then - Actions
Unit - Move PT_caster instantly to PT_parray[1]
Custom script: call RemoveLocation (udg_PT_parray[1])
Special Effect - Create a special effect attached to the origin of PT_caster using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Else - Actions
Unit - Move PT_caster instantly to PT_parray[(PT_counter - 5)]
Custom script: call RemoveLocation (udg_PT_parray[udg_PT_counter - 5])
Special Effect - Create a special effect attached to the origin of PT_caster using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Wtf, reading this i see that i forgot one event. *goes on testing*
Edit: it works now nvm this thread XD