Garry's Mod Wiki

WEAPON:GetNPCRestTimes

WEAPON:GetNPCRestTimes

number, number WEAPON:GetNPCRestTimes()

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.

Returns

1 number
Minimum amount of time the NPC can rest (not shoot) between bursts in seconds. Default is 0.3 seconds.
2 number
Maximum amount of time the NPC can rest (not shoot) between bursts in seconds. Default is 0.66 seconds.

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 41
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 6