Garry's Mod Wiki

Garry's Mod Wiki

  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 WEAPON_PROFICIENCY enum

Returns

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...