G.SetGlobalVector
From GMod Wiki
Function | |
Syntax |
SetGlobalVector( Var index, Vector value ) Where is this used? |
Description: | |
Similiar to the function Entity:SetNetworkedVector - Sets a networked Vector , but outside of the entity. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalVector]G.SetGlobalVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Running a networked function will cause it to synchronize the networked data with the clients.
- Index can be a String or Integer - however, when dealing with global networked variables, it's suggested that you use a string with part of the name of your script in it - like "mygamemode_tickrate", for example.
- Running this function clientside will only set it clientside - not serverside.
- Only set networked variables when necessary - sending networked variables constantly is expensive.