Name | Type | is_array | initial_value |
Buildnings | group | No | |
Host | player | No | |
KickButton | button | Yes | |
KickDialog | dialog | No | |
TimeElapsed | integer | Yes | |
TownHalls | integer | Yes | 6 |
function Trig_GetHost_Actions 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 InitTrig_GetHost takes nothing returns nothing
set gg_trg_GetHost = CreateTrigger( )
call TriggerAddAction( gg_trg_GetHost, function Trig_GetHost_Actions )
endfunction