Black Ops III

GetWeaponForWeaponRoot

Returns a weapon that the player is holding that has the same weapon root. Returns undefined if the player is not holding the weapon.

Example:

weapon_with_attachments = player GetWeaponForWeaponRoot( <weapon> )

Parameters

ParameterSummary
*weaponThe weapon to check

* = mandatory