Killzone_Kid
To check if currently selected muzzle has a silencer:
hasSilencer = player weaponAccessories currentMuzzle player param [0, ""] != "";
Results appear below as you type; use the arrow keys to move through them.
Get array with all items linked to a given weapon.
Important
This command does not return loaded magazines, see weaponsItems
unit weaponAccessories weapon
Parameters:
Returns: Array - [silencer, laserpointer/flashlight, optics, bipod]
player weaponAccessories primaryWeapon player; //["","acc_pointer_IR","optic_Aco",""]
weaponAccessoriesCargo · handgunItems · primaryWeaponItems · secondaryWeaponItems · weaponsItems · weaponsItemsCargo
To check if currently selected muzzle has a silencer:
hasSilencer = player weaponAccessories currentMuzzle player param [0, ""] != "";
Since revision 129742, this command also returns an attached bipod.