PhysObj.SetVelocity

From GMod Wiki

Revision as of 13:42, 13 September 2009 by MakeR (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax PhysObj:SetVelocity( Vector Velocity )
Description:
Sets the physobjects speed to the world Vector.
Returns: nil
In Object: PhysObj
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.SetVelocity]PhysObj.SetVelocity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionSend the Entity toward the y-axis.
Used onNewerShared.png
Code
phys:SetVelocity(Vector(0,10,0))
OutputWill move the Entity towards y(for an infinite amount of time).
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox