SetNetworkLocalInteger

Description

Sets a local integer variable for this client by name. Other clients can then read this variable by using the same name when requesting its value. The mode parameter specifies how this variable should behave, with a value of 1 meaning that this variable will reset to 0 when read. For example if you wanted to send a click notification you could set a value of 1 to signify a click with a mode value of 1. When each client reads the variable, each will see the value 1, but if they try to read it again they will get the value 0. Each client only resets its own copy of the variable. A mode value of 0 means it is a normal variable that will not change when read.

If the variable with that name does not exist it is created. Once a variable is created in normal or resetting mode it cannot be changed and the mode parameter is ignored.

Definition

SetNetworkLocalInteger( iNetID, name, i, mode )

SetNetworkLocalInteger( iNetID, name, i )

Parameters