Garry's Mod Wiki

WEAPON:GetNPCBulletSpread

WEAPON:GetNPCBulletSpread

  number WEAPON:GetNPCBulletSpread( number proficiency )

Description

Called when the weapon is used by NPCs to determine how accurate the bullets fired should be.

The inaccuracy is simulated by changing the NPC:GetAimVector based on the value returned from this hook.

Arguments

1 number proficiency
How proficient the NPC is with this gun. See Enums/WEAPON_PROFICIENCY

Returns

1 number
An amount of degrees the bullets should deviate from the NPC's NPC:GetAimVector. Default is 15.

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 8