Entity.SetNetworkedVar

From GMod Wiki

Revision as of 16:27, 1 November 2010 by SiPlus (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetNetworkedVar( Var index, Var value )
Description:
Sets a networked Var 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.SetNetworkedVar]Entity.SetNetworkedVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets a networked variable on an entity.
Used onNewerShared.png
Code
myString = "This is a string!"
 
Entity:SetNetWorkedVar( "SomeString", mystring )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox