G.SetGlobalVector

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalVector]G.SetGlobalVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global vectors which you can later get with GetGlobalVector.
Used onNewerServer.png
Code
SetGlobalVector( 666, Vector( 666, 333, 999 ) )
SetGlobalVector( "FirstPlayerPos", Entity( 1 ):GetPos() )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox