G.SetGlobalFloat

From GMod Wiki

Jump to: navigation, search
Function
Syntax SetGlobalFloat( Var index, Float value )
Where is this used?
Description:
Similiar to the function Entity:SetNetworkedFloat - Sets a networked Float , but outside of the entity.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalFloat]G.SetGlobalFloat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global floats which you can later get with GetGlobalFloat.
Used onNewerServer.png
Code
SetGlobalFloat( 100, 50 + 25 + 12.5 + 6.25 + 3.125 + 1.0675 )
SetGlobalFloat( "Pi", math.pi )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox