Entity/SetVelocity

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

Description

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

NOTE

Actually binds to CBaseEntity::SetBaseVelocity() which sets the entity's velocity due to forces applied by other entities.

WARNING

If applied to a player, this will actually ADD velocity, not set it.

Arguments

Vector velocity

The new velocity to set.
Personal tools
Navigation