- Joined
- Jul 10, 2007
- Messages
- 6,306
A set of fun functions. Each function, except for StopTrigger, works with a specific player.
To make the function apply to all players, pass in
People sometimes ask me for functions that do these things (like hidden error functions), so I decided to post up my lib.
To make the function apply to all players, pass in
GetLocalPlayer()
People sometimes ask me for functions that do these things (like hidden error functions), so I decided to post up my lib.
JASS:
library Error
/*
function ExitWarcraft takes player p returns nothing
function FreezeWarcraft takes player p returns nothing
function CrashWarcraft takes player p returns nothing
function DesyncGame takes player p returns nothing
function StopTrigger takes nothing returns nothing
*/
globals
private integer xx = 0
endglobals
function ExitWarcraft takes player p returns nothing
if (GetLocalPlayer() == p) then
loop
call ExecuteFunc("ExitWarcraft")
endloop
endif
endfunction
function FreezeWarcraft takes player p returns nothing
if (GetLocalPlayer() == p) then
loop
call TriggerSyncReady()
call ExecuteFunc("FreezeWarcraft")
endloop
endif
endfunction
function CrashWarcraft takes player p returns nothing
if (GetLocalPlayer() == p) then
call ExecuteFunc("0")
endif
endfunction
function DesyncGame takes player p returns nothing
if (GetLocalPlayer()==p) then
call DestroyTrigger(CreateTrigger())
endif
endfunction
function StopTrigger takes nothing returns nothing
set xx = xx/xx
endfunction
endlibrary
Last edited: