Entity.SetNetworkedInt

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:SetNetworkedInt( 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.SetNetworkedInt]Entity.SetNetworkedInt [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSet a entity's 'money' to 30
Used onNewerShared.png
Code
Entity:SetNWInt("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