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.)
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Description=Called whenever the entity's position changes.
+
|Description=Called whenever the entity's position changes. A callback for when an entity's angle changes is available vie {{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.
 
|Realm=Shared
 
|Realm=Shared
 
|Predicted=No
 
|Predicted=No
|Name=CalcAbsolutePosition
 
|Parent=ENTITY
 
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 17:02, 29 March 2017

 ENTITY:CalcAbsolutePosition( )

Contents

Description

Called whenever the entity's position changes. A callback for when an entity's angle changes is available vie 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