Garry's Mod Wiki

Entity:SetAbsVelocity

  Entity:SetAbsVelocity( Vector velocity )

Description

Sets the entity's velocity.

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

1 Vector velocity
The new velocity to set.

Example

Makes Entity(1) fly upwards.

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