setWeaponProperty
Client-side
Server-side
Shared
Pair: getWeaponProperty
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 the weapon property of the specified weapons specified weapon type. See lower down the page for documentation related to weapon creation.
Syntax
setWeaponProperty ( )Code Examples
server
This example sets the weapon range of the M4 at poor skill level to 75
local rangeSet = setWeaponProperty(31, "poor", "weapon_range", 75)if (rangeSet) then outputChatBox("M4 range at poor skill is set now 75!")end