getWeaponProperty
Client-side
Server-side
Shared
Pair: setWeaponProperty
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 gets a weapon property of the specified custom weapon (clientside only) or specified player-held weapon (both client and server).
Syntax
getWeaponProperty ( )Code Examples
server
This example gets the weapon range of the M4 at poor skill level
local range = getWeaponProperty(31, "poor", "weapon_range")outputChatBox("M4 range at poor is: "..tostring(range))