ENTITY/CalcAbsolutePosition

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(fix parentheses styling. oh and also added a bit of useful info.)
m (vie -> via)
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Description=Called whenever the entity's position changes. A callback for when an entity's angle changes is available vie {{ClassFunction|Entity|AddCallback}}.
+
|Description=Called whenever the entity's position changes. A callback for when an entity's angle changes is available via {{ClassFunction|Entity|AddCallback}}.
  
 
Like {{HookFunction|ENTITY|RenderOverride}}, this hook works on any entity (scripted or not) it is applied on.
 
Like {{HookFunction|ENTITY|RenderOverride}}, this hook works on any entity (scripted or not) it is applied on.

Revision as of 07:35, 19 May 2017

 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