Entity.SetLocalPos

From GMod Wiki

Revision as of 19:07, 29 May 2010 by Disseminate (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetLocalPos( Vector localpos )
Description:
Adds to the entity's current position by the given vector
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetLocalPos]Entity.SetLocalPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the entity's position to 100 units above it.
Used onNewerShared.png
Code
 
Entity:SetLocalPos( Vector( 0, 0, 100 ) );
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox