ENTITY/GetAttackSpread

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Description={{Validate}} Called to determine how good an NPC is at using a particular weapon.
+
|Description=Called to determine how good an NPC is at using a particular weapon.
  
 
{{Note|"ai" base only}}
 
{{Note|"ai" base only}}
 +
 
[[Category:ENT_AI_Hooks]]
 
[[Category:ENT_AI_Hooks]]
 
|Realm=Server
 
|Realm=Server
 
|Predicted=No
 
|Predicted=No
|Name=GetAttackSpread
 
|Parent=ENTITY
 
 
|File=gamemodes/base/entities/entities/base_ai/init.lua
 
|File=gamemodes/base/entities/entities/base_ai/init.lua
 
|Line=104
 
|Line=104

Latest revision as of 13:13, 12 August 2019

 ENTITY:GetAttackSpread( )

Contents

Description

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