setWeaponState
Client-side
Server-side
Shared
Pair: getWeaponState
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function sets a custom weapon's state.
Syntax
setWeaponState ( )Code Examples
client
addEventHandler("onClientResourceStart", resourceRoot, function() local wep = createWeapon("m4", 0, 0, 4) setWeaponState(wep, "firing") end)