ENTITY/GetAttackSpread

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Add category)
Line 1: Line 1:
 
{{Hook
 
{{Hook
 
|Description={{Validate}} Called to determine how good an NPC is at using a particular weapon.
 
|Description={{Validate}} Called to determine how good an NPC is at using a particular weapon.
 +
 +
{{Note|"ai" base only}}
 +
[[Category:ENT_AI_Hooks]]
 
|Realm=Server
 
|Realm=Server
 
|Predicted=No
 
|Predicted=No
Line 22: Line 25:
 
|desc=The number of degrees of inaccuracy in the NPC's attack.
 
|desc=The number of degrees of inaccuracy in the NPC's attack.
 
}}
 
}}
[[Category:ENT_AI_Hooks]]
 

Revision as of 07:43, 10 May 2019

 ENTITY:GetAttackSpread( )

Contents

Description

Validation required.
This page contains possibly incorrect or incomplete information. Further testing is required.
Called to determine how good an NPC is at using a particular weapon.
NOTE

"ai" base only

Arguments

Entity wep

The weapon being used by the NPC.

Arguments

Entity target

The target the NPC is attacking

Returns

number

The number of degrees of inaccuracy in the NPC's attack.
Personal tools
Navigation