| 03-13-2006, 05:23 PM | #1 |
EDIT: Nvm fixed the trigger Cant seem to delete the post.. EDIT2: Anyway Im gonna use this thread anyway, sry if the title is misleading. Ive read some about natives and non-natives and played some with it. The only thing I'm unsure of is what all the booleans mean. Cant seem to find one right now. (Can someone try to find one?) Oh btw. How does this look, its instead of a "Wait(Distance between target and caster)" JASS:
local location x1=GetUnitX(cast)
local location y1=GetUnitY(cast)
local location x2=GetUnitX(targ)
local location y2=GetUnitY(targ)
local real wait=( ( (x2-x1) * (x2-x1) + (y2-y1) * (y2-y1) ) / 1000.00 )
call TriggerSleepAction( (wait)
EDIT: Hmm it doesnt seem to work, can someone tell me whats wrong with it? EDIT again: Ahaha the problem was that I had forgot to change the local locations to reals |
