getSlotItemName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 0.50 |gr1= Unit Inventory |descr= Returns the name of assigned item in given slot or the empty string. Supported slots are: * 60...")
 
m (Some wiki formatting)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 0.50
|version1= 2.14


|gr1= Unit Inventory
|gr1= Unit Inventory


|descr= Returns the name of assigned item in given slot or the empty string. Supported slots are:
|descr= Returns the name of assigned item in given slot or the empty string.


|s1= unit [[getSlotItemName]] slot
|p1= unit: [[Object]]
|p2= slot: [[Number]] - can be one of:
{{Columns|4|
* 603 - Goggles
* 603 - Goggles
* 605 - Headgear  
* 605 - Headgear
* 608 - Map
* 608 - Map
* 609 - Compass
* 609 - Compass
Line 17: Line 23:
* 616 - HMD
* 616 - HMD
* 617 - Binoculars
* 617 - Binoculars
* 701 - Vest      
* 701 - Vest
* 801 - Uniform    
* 801 - Uniform
* 901 - Backpack
* 901 - Backpack
 
}}
|s1= unit [[getSlotItemName]] slot
 
|p1= unit: [[Object]]
|p1= slot: [[Number]] - see description


|r1= [[String]] - item name
|r1= [[String]] - item name


|x1= <sqf>hint str (player getSlotItemName 610;</sqf>
|x1= <sqf>hint (player getSlotItemName 610);</sqf>


|seealso= [[assignItem]] [[unassignItem]] [[linkItem]] [[unlinkItem]] [[addItem]] [[removeItem]] [[removeAllAssignedItems]] [[items]] [[itemsWithMagazines]] [[backpacks]]
|seealso= [[assignedItems]] [[assignItem]] [[unassignItem]] [[linkItem]] [[unlinkItem]] [[addItem]] [[removeItem]] [[removeAllAssignedItems]] [[items]] [[itemsWithMagazines]] [[backpacks]]
}}
}}

Latest revision as of 13:47, 12 March 2024

Hover & click on the images for description

Description

Description:
Returns the name of assigned item in given slot or the empty string.
Groups:
Unit Inventory

Syntax

Syntax:
unit getSlotItemName slot
Parameters:
unit: Object
slot: Number - can be one of:
  • 603 - Goggles
  • 605 - Headgear
  • 608 - Map
  • 609 - Compass
  • 610 - Watch
  • 611 - Radio
  • 612 - GPS
  • 616 - HMD
  • 617 - Binoculars
  • 701 - Vest
  • 801 - Uniform
  • 901 - Backpack
Return Value:
String - item name

Examples

Example 1:
hint (player getSlotItemName 610);

Additional Information

See also:
assignedItems assignItem unassignItem linkItem unlinkItem addItem removeItem removeAllAssignedItems items itemsWithMagazines backpacks

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note