Garry's Mod Wiki

Garry's Mod Wiki

  Vector, Angle ENTITY:CalcAbsolutePosition( Vector pos, Angle ang )

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.

If EFL_DIRTY_ABSTRANSFORM is set on the entity, this will be called serverside only; otherwise, this will be called clientside only. This means serverside calls of Entity:SetPos without the EFL_DIRTY_ABSTRANSFORM flag enabled (most cases) will be called clientside only.
The give concommand will call this hook serverside only upon entity spawn.

Arguments

1 Vector pos
The entity's actual position. May differ from Entity:GetPos
2 Angle ang
The entity's actual angles. May differ from Entity:GetAngles

Returns

1 Vector
New position
2 Angle
New angles

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...