Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 26ms

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