Entity.SetNetworkedString
From GMod Wiki
| Function | |
| Syntax |
Entity:SetNetworkedString( |
| Description: | |
|
Sets a networked |
|
| Returns: |
|
| In Object: |
|
| 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
| Description | For the time being, none. | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | None. |
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
or
.
- 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.
