Garry's Mod Wiki

Entity:GetVelocity

Entity:GetVelocity

Vector Entity:GetVelocity()

Description

Returns the entity's velocity.

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.
This can become out-of-sync on the client if the server has been up for a long time.

Issue Tracker: 774

Returns

1 Vector
The velocity of the entity.

Special Pages


Wikis

?

Render Time: 66ms

DB GetPage 46
Generate Html 1
SaveChanges (1) 10
Render Body 0
Render Sidebar 6