Benargee
This command doesn't work for Items in Arma 3, use this instead (e.g ItemGPS).
"ItemGPS" in (items player + assignedItems player)
Returns true if unit has gps in inventory, assigned or not.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Unit Inventory · Markdown · JSON · original wiki page
Checks if a unit has the given weapon in hands or on back/in holster. Weapons inside unit containers such as vest and backpack are not counted.
unitName hasWeapon weaponName
Parameters:
Returns: Boolean - returns true if the unit has the weapon, false if not.
if !(player hasWeapon "arifle_MX_ACO_pointer_F") then { player addWeapon "arifle_MX_ACO_pointer_F" };
This command doesn't work for Items in Arma 3, use this instead (e.g ItemGPS).
"ItemGPS" in (items player + assignedItems player)
Returns true if unit has gps in inventory, assigned or not.