Garry's Mod Wiki

ENTITY:GetAttackSpread

ENTITY:GetAttackSpread

  number ENTITY:GetAttackSpread( Entity wep, Entity target )

Description

Called to determine how good an NPC is at using a particular weapon.

"ai" base only

Arguments

1 Entity wep
The weapon being used by the NPC.
2 Entity target
The target the NPC is attacking

Returns

1 number
The number of degrees of inaccuracy in the NPC's attack.

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 2
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 7