getWeaponFiringRate
Client-side
Server-side
Shared
Pair: setWeaponFiringRate
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This gets the firing rate to be used when a custom weapon opens fire.
Syntax
getWeaponFiringRate ( )Code Examples
client
This example creates a minigun at the center of the map and creates a/fireratecommand that outputs its firerate to the player who types it.
local weapon = createWeapon("minigun", 0, 0, 3)
function outputMinigunFireRate() outputChatBox("Fire rate: " .. getWeaponFiringRate(weapon))endaddCommandHandler("firerate", outputMinigunFireRate)