- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
How do I just do a generic wait in a JASS script?
Here's my function. I want it to wait 1.5 seconds before it fires off the rest of the code. I am super confused what's the best way to do this...
How do I just do a generic wait in a JASS script?
Here's my function. I want it to wait 1.5 seconds before it fires off the rest of the code. I am super confused what's the best way to do this...
JASS:
method moveToLoc takes location targetLoc returns nothing
//wait 1.5 seconds
//call Wait(1.5)
call SetUnitPositionLoc(pc.u, targetLoc)
call party.moveGroupToLoc(targetLoc)
if GetLocalPlayer() == players[pid] then
call PanCameraToTimed(GetLocationX(targetLoc), GetLocationY(targetLoc), 0)
endif
endmethod