Entity/HeadTarget

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added explanation and arguments)
m
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=HeadTarget
 
|Parent=Entity
 
 
|Description=Returns the position of the head of this entity, NPCs use this internally to aim at their targets.
 
|Description=Returns the position of the head of this entity, NPCs use this internally to aim at their targets.
  
Line 7: Line 5:
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
 +
|Name=HeadTarget
 +
|Parent=Entity
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=Vector
 
|type=Vector
 
|name=origin
 
|name=origin
|desc=The vector of where the the attack comes from.
+
|desc=The vector of where the attack comes from.
 
}}
 
}}
 
{{Ret
 
{{Ret

Revision as of 21:23, 29 February 2016

 Entity:HeadTarget( )

Description

Returns the position of the head of this entity, NPCs use this internally to aim at their targets.

NOTE: This only works on players and NPCs.

Arguments

Vector origin

The vector of where the attack comes from.

Returns

Vector

The head position.
Personal tools
Navigation