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 ) )

Page Links


Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 3
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 6