ENTITY:CalcAbsolutePosition

From Garry's Mod
Jump to: navigation, search
 ENTITY:CalcAbsolutePosition( )

Contents

Description

Called whenever the entity's position changes. A callback for when an entity's angle changes is available via Entity:AddCallback.

Like ENTITY:RenderOverride, this hook works on any entity (scripted or not) it is applied on.

Arguments

Vector pos

The entity's actual position. May differ from Entity:GetPos

Arguments

Angle ang

The entity's actual angles. May differ from Entity:GetAngles

Returns

Vector

New position

Returns

Angle

New angles
Personal tools
Navigation