Host detection system
I need a host detection system to allow the host to choose the game mode
for the game make just make very very basic dialogue box, i got my own system that i will implant in
theres a code to begin the system
I need a host detection system to allow the host to choose the game mode
for the game make just make very very basic dialogue box, i got my own system that i will implant in
theres a code to begin the system
Code hostJASS: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
Last edited: