Entity.SetNetworkedVector

From GMod Wiki

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



Examples

DescriptionStores the position of "MyEntity" to a networked vector "EntityPos"
Used onServer
Code
 
MyEntity = ents.Create("prop_physics")
position = MyEntity:GetPos()
MyEntity:SetNetworkedVector("EntityPos",position)
 
Outputnone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox