Counter Strike Online Wiki
Advertisement

Variables automatically synchronized to the client


Fields[]

Game.SyncValue.name[]

Get the name of the SyncValue.


Game.SyncValue.value[]

Gets or changes the value of SyncValue.
  • value: (number, string or bool)
Usage:
var1 = Game.SyncValue.Create('var1')
print(var1.value)
var1.value = 123


Methods[]

Game.SyncValue:Create (name)[]

Create a Game.SyncValue with a specific name or get a Game.SyncValue with the same name. Synchronize with the same name UI.SyncValue.
Parameters:
Returns:
(Game.SyncValue)
Usage:
var1 = Game.SyncValue.Create('var1')

Advertisement