| 07-25-2006, 10:05 PM | #1 |
In this jass script, i can't figure out what to type in for the esc event. What do i type in for the esc player event when i call this function? JASS:function WaitForPlayerEvent takes handle whichForceOrPlayer, playerevent whichPlayerEvent, boolexpr condition, real interval returns nothing local trigger bj_temp = bj_delayedSuspendDecayTrig local trigger t local triggercondition c local player whichPlayer = WaitForPlayerEvent_H2P(whichForceOrPlayer) local force whichForce = WaitForPlayerEvent_H2F(whichForceOrPlayer) if whichForceOrPlayer == null or whichPlayerEvent == null then set whichForce = null return elseif interval < 0 then set interval = 0 endif set t = CreateTrigger() set bj_delayedSuspendDecayTrig = t set bj_forceCountPlayers = WaitForPlayerEvent_PE2I(whichPlayerEvent) call ForForce(whichForce, function WaitForPlayerEvent_Enum) call TriggerRegisterPlayerEvent(bj_delayedSuspendDecayTrig, whichPlayer, whichPlayerEvent) if condition != null then set c = TriggerAddCondition(bj_delayedSuspendDecayTrig, condition) endif set bj_delayedSuspendDecayTrig = bj_temp loop call TriggerSleepAction(interval) exitwhen GetTriggerExecCount(t) != 0 endloop if condition != null then call TriggerRemoveCondition(t, c) set c = null endif call DestroyTrigger(t) set t = null set whichForce = null endfunction |
| 07-25-2006, 10:52 PM | #2 |
EVENT_PLAYER_END_CINEMATIC |
| 07-25-2006, 10:57 PM | #3 |
awww thanks sry, i can't give you rep yet. it won't let me |
