Garry's Mod Wiki

Entity:SetVelocity

Entity:SetVelocity( Vector velocity )

Description

Sets the entity's velocity. For entities with physics, consider using PhysObj:SetVelocity on the PhysObj of the entity.

Actually binds to CBaseEntity::SetBaseVelocity() which sets the entity's velocity due to forces applied by other entities.
If applied to a player, this will actually ADD velocity, not set it.

Arguments

1 Vector velocity
The new velocity to set.

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 3
Generate Html 5
SaveChanges (1) 10
Render Body 0
Render Sidebar 12