Entity.GetNetworkedVector

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetNetworkedVector( Var index [, Vector default] )
Description:
Returns a networked Vector in this entity set with Entity:SetNetworkedVector with the given index.
Returns: Vector
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetNetworkedVector]Entity.GetNetworkedVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets a networked vector "SavedPos" and sets entity position with its coordinates.
Used onNewerServer.png
Code
MyEntity = ents.Create("prop_physics")
pos = MyEntity:GetNetworkedVector("SavedPos")
MyEntity:SetPos(pos)
Outputnone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox