Entity.SetNetworkedString

From GMod Wiki

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



Examples

DescriptionFor the time being, none.
Used onImage:NewerMissing.png
Code
This page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputNone.


Additional Notes

  • Can be written SetNWString().
  • Running a networked function will cause it to synchronize the networked data with the clients.
  • Index can be a String or Integer.
  • Running this function clientside will only set it clientside - not serverside. You should set networked variables to their defaults in the initialization function of a scripted entity or SWEP.
  • This rule especially applies to networked strings: Only set networked variables when necessary - sending networked variables constantly is expensive.

See Also

Personal tools