Garry's Mod Wiki

Garry's Mod Wiki

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...