Entity.SetNetworkedNumber

From GMod Wiki

Revision as of 14:15, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetNetworkedNumber( Var index, Integer value )
Description:
Sets a networked Integer 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.SetNetworkedNumber]Entity.SetNetworkedNumber [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSet an entity's 'money' to 30
Used onNewerShared.png
Code
Entity:SetNetworkedNumber( "money", 30 ) 
OutputThis sets a new int related to the entity.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox