Entity/GetVelocity

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

Description

Returns the entity's velocity.

NOTE

Actually binds to CBaseEntity::GetAbsVelocity() on the server and C_BaseEntity::EstimateAbsVelocity() on the client. This returns the total velocity of the entity and is equal to local velocity + base velocity.

BUG

This can become out-of-sync on the client if the server has been up for a long time.

Issue Tracker: #774

Returns

Vector

The velocity of the entity.
Personal tools
Navigation