Garry's Mod Wiki

Revision Difference

WEAPON:GetNPCRestTimes#527505

<function name="GetNPCRestTimes" parent="WEAPON" type="hook"> <ishook>yes</ishook> <description>Called when the weapon is used by NPCs to tell the NPC how to use this weapon. Controls amount of time the NPC can rest (not shoot) between bursts. <bug>Has no effect on Combine Soldiers</bug></description>⤶ <bug>Has no effect on Combine Soldiers, will be fixed in the next update</bug></description>⤶ <realm>Server</realm> <predicted>No</predicted> <rets> <ret name="" type="number">Minimum amount of time the NPC can rest (not shoot) between bursts in seconds. Default is 0.3 seconds.</ret> <ret name="" type="number">Maximum amount of time the NPC can rest (not shoot) between bursts in seconds. Default is 0.66 seconds.</ret> </rets> </function>