Entity.SetNetworkedFloat

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetNetworkedFloat( Var index, Float value )
Description:
Sets a networked Float in this entity with the given index to the given value.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetNetworkedFloat]Entity.SetNetworkedFloat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSends a random float to the client.
Used onNewerServer.png
Code
function GM:PlayerSpawn( player )
    player:SetNetworkedFloat( "RandFloat", math.Rand( 0, 3.14 ) );
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox