Entity Callbacks

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 23: Line 23:
  
 
The arguments are:
 
The arguments are:
* {{FuncArg|Entity|ent|Our entity with new angles}}
+
* {{FuncArg|Entity|ent|Our entity}}
 
* {{FuncArg|table|data|The collision data. See {{Struct|CollisionData}}}}
 
* {{FuncArg|table|data|The collision data. See {{Struct|CollisionData}}}}
 
|}
 
|}

Revision as of 08:09, 19 May 2016

All possible callbacks for Entity:AddCallback.

Callback Description
OnAngleChange Called whenever the entity angles change.

The arguments are:

  • Entity ent - Our entity with new angles
  • Angle ang - The new angles
BuildBonePositions Called whenever the bones are being built.

The arguments are:

PhysicsCollide Called when the we collide with something else.

The arguments are:

Personal tools
Navigation