Entity/SetAbsVelocity

From Garry's Mod
Jump to: navigation, search
 Entity:SetAbsVelocity( )

Contents

Description

Sets the entity's velocity.

NOTE

Actually binds to CBaseEntity::SetLocalVelocity() which sets the entity's velocity due to movement in the world from forces such as gravity. Does not include velocity from entity-on-entity collision or other world movement.

Arguments

Vector velocity

The new velocity to set.

Examples

Example

Makes Entity(1) fly upwards.

Entity( 1 ):SetAbsVelocity( Vector( 0, 0, 500 ) )


Personal tools
Navigation