Garry's Mod Wiki

Garry's Mod Wiki

  SetGlobal2Float( any index, number float )

Description

Defines a floating point number to be automatically networked to clients

This function has a floating point precision error. Use SetGlobalFloat instead
Running this function clientside will only set it clientside for the client it is called on!

Arguments

1 any index
Index to identify the global float with
2 number float
Float to be networked

Example

SetGlobal2Float("Example", 3.3) print(GetGlobal2Float("Example"))
Output: 3.2999999523163

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...