Name | Type | is_array | initial_value |
F22raptor | unit | No | |
Host | player | No | |
Humans | force | No | |
LastDummy | unit | Yes | |
SonicBoomTarget | location | No | |
Unitcount | integer | No | |
Zombies | force | No | |
ZombPLayerCount | integer | No |
function GetHost takes nothing returns nothing
local gamecache g = InitGameCache("Map.w3v")
call StoreInteger ( g, "Map", "Host", GetPlayerId(GetLocalPlayer ())+1)
call TriggerSyncStart ()
call SyncStoredInteger ( g, "Map", "Host" )
call TriggerSyncReady ()
set udg_Host = Player( GetStoredInteger ( g, "Map", "Host" )-1)
call FlushGameCache( g )
set g = null
endfunction
function Trig_host_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_host takes nothing returns nothing
set gg_trg_host = CreateTrigger( )
call TriggerAddAction( gg_trg_host, function Trig_host_Actions )
endfunction