Garry's Mod Wiki

Revision Difference

ENTITY:GetAttackSpread#552968

<function name="GetAttackSpread" parent="ENTITY" type="hook"> <ishook>yes</ishook>⤶ <description> Called to determine how good an NPC is at using a particular weapon. <note>"ai" base only</note> </description> <realm>Server</realm> <predicted>No</predicted>⤶ <file line="104">gamemodes/base/entities/entities/base_ai/init.lua</file> <args> <arg name="wep" type="Entity">The weapon being used by the NPC.</arg> <arg name="target" type="Entity">The target the NPC is attacking</arg> </args> <rets> <ret name="" type="number">The number of degrees of inaccuracy in the NPC's attack.</ret> </rets> </function>