darkRae
Ueki Fan (Ueki is watching you)
- Reaction score
- 173
Code:
Warp Attack
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Warp Attack
Actions
Set U = (Target unit of ability being cast)
Set L = (Position of U)
Set RealX = (X of L)
Set RealY = (Y of L)
Custom script: call SetUnitX( GetTriggerUnit(), udg_RealX )
Custom script: call SetUnitY( GetTriggerUnit(), udg_RealY )
Unit - Order (Triggering unit) to Attack U
Custom script: call RemoveLocation( udg_L )
This is my trigger.
If more than one unit cast it at about the same time, Warcraft3 crashes.
Warcraft3 crashes without an error message, it just returned to Desktop.
Anyone knows the solution?
FYI, when I used 'Unit - Move Instantly to Location' it didn't crash, so SetUnitX and SetUnitY must be the cause of the problem, but I don't know what I am missing.