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
Name | Type | is_array | initial_value |
AirsrtrikePoint | location | No | |
AirstrikeInProgress | boolean | No | |
AnimationIndex | integer | No | |
CommandUnitGroup | group | Yes | |
DifficultyRating | real | No | 0.80 |
DistanceTravelledPoint1 | location | Yes | |
DistanceTravelledPoint2 | location | Yes | |
DistanceTravelledReal | real | Yes | |
EasyDialogButton | button | No | |
EasyDifficulty | boolean | No | |
ElapsedTimeMinutes | integer | No | 0 |
ElapsedTimeSeconds | integer | No | 0 |
EnergySuit | boolean | Yes | |
ExtraSpawnInteger | integer | No | 2 |
GameDifficultyDialog | dialog | No | |
GameOver | boolean | No | |
GeneralAttackedInteger | integer | No | |
GoldIncrease | integer | No | 1 |
HardDialogButton | button | No | |
HardDifficulty | boolean | No | |
Helicopter | unit | No | |
HelicopterFade | real | No | |
Host | player | No | |
LeapAngle | real | Yes | |
LeapDistance | real | Yes | |
LeapGroup | group | No | |
LeapHeight | real | Yes | |
MissileTurretCooldownGroup | group | No | |
Multiboard | multiboard | No | |
NoBulletsMessageInteger | integer | Yes | 1 |
NormalDialogButton | button | No | |
NormalDifficulty | boolean | No | |
OverallRating | real | Yes | |
PlayerAlive | boolean | Yes | false |
PlayerColors | string | Yes | |
PlayerCount | integer | No | 0 |
PlayerInteger | integer | No | 1 |
PlayerKills | integer | Yes | |
PlayerNames | string | Yes | |
PlayerRow | integer | Yes | |
PlayerUnits | unit | Yes | |
Recoil | boolean | Yes | |
RecoilEffect | real | Yes | |
RecoilValue | real | Yes | |
ReloadingUnit | unit | Yes | |
ReloadTime | real | Yes | |
Right | boolean | Yes | |
ShotsFired | integer | Yes | |
Skill | integer | Yes | |
Soldier | unit | Yes | |
SoldierGroup | group | No | |
SprayNPrayCaster | unit | Yes | |
SprayNPrayGroup | group | Yes | |
SprayNPrayTarget | unit | Yes | |
StructuresBuilt | integer | Yes | |
SurvivalTime | real | Yes | 0.00 |
SurvivalTimeMinutes | integer | Yes | |
SurvivalTimeSeconds | integer | Yes | 0 |
TempAngle | real | No | |
TempGroup | group | No | |
TempGroup2 | group | No | |
TempPoint | location | No | |
TempPoint2 | location | No | |
TempPoint3 | location | No | |
TempUnit | unit | No | |
TempUnit2 | unit | No | |
TempUnit3 | unit | No | |
ValorPointsKills | integer | Yes | 0 |
VictoryTimer | timer | No | |
Win | boolean | No |