selectionNames: Difference between revisions
Jump to navigation
Jump to search
m (see also) |
m (Formatting) |
||
Line 5: | Line 5: | ||
| Returns the list of model selections |DESCRIPTION= | | Returns the list of model selections |DESCRIPTION= | ||
| | | [[selectionNames]] object |SYNTAX= | ||
|p1= object: [[Object]] |PARAMETER1= | |p1= object: [[Object]] |PARAMETER1= | ||
| [[Array]] - List of selection names |RETURNVALUE= | | [[Array]] - List of selection names |RETURNVALUE= | ||
|s2= object | |s2= object [[selectionNames]] LOD {{since|arma3|1.99.146486|true}} |SYNTAX2= | ||
|p21= object: [[Object]] |PARAMETER21= | |p21= object: [[Object]] |PARAMETER21= | ||
|p22= LOD: [[String]] could be: <tt>"Memory"</tt>, <tt>"Geometry"</tt>, <tt>"FireGeometry"</tt>, <tt>"LandContact"</tt>, <tt>"HitPoints"</tt> |PARAMETER22= | |p22= LOD: [[String]] could be: <tt>"Memory"</tt>, <tt>"Geometry"</tt>, <tt>"FireGeometry"</tt>, <tt>"LandContact"</tt>, <tt>"HitPoints"</tt> |PARAMETER22= | ||
Line 16: | Line 16: | ||
|x1= <code>_house= "Land_i_House_Small_02_V3_F" [[createVehicle]] _pos; | |x1= <code>_house= "Land_i_House_Small_02_V3_F" [[createVehicle]] _pos; | ||
[[selectionNames]] _house; | [[selectionNames]] _house; | ||
{{cc|["door_1","door_2","damt_1","door_handle_1","door_handle_2","glass_1_hide","glass_2_hide","glass_3_hide","glass_1_unhide","glass_2_unhide","glass_3_unhide","glass_4_hide","glass_4_unhide"]}}</code>|EXAMPLE1= | |||
|x2= <code>[[selectionNames]] [[player]]; | |x2= <code>[[selectionNames]] [[player]]; | ||
{{cc|["spine","spine1","spine2","spine3","head","leftshoulder","leftarm","leftarmroll","leftforearm","leftforearmroll","lefthand","rightshoulder","rightarm","rightarmroll","rightforearm","rightforearmroll","righthand","pelvis","leftupleg","leftuplegroll","leftleg","leftlegroll","leftfoot","lefttoebase","rightupleg","rightuplegroll","rightleg","rightlegroll","rightfoot","righttoebase","weapon","proxy:\a3\characters_f\proxies\weapon.001","proxy:\a3\characters_f\proxies\pistol.001","proxy:\a3\characters_f\proxies\binoculars.001","proxy:\a3\characters_f\proxies\launcher.001","launcher","nvg","proxy:\a3\characters_f\proxies\nvg.001","proxy:\a3\characters_f\proxies\flag.001","proxy:\a3\characters_f\proxies\equipment.001","proxy:\a3\characters_f\proxies\backpack.001","proxy:\a3\characters_f\proxies\pistol_holstered.001","proxy:\a3\characters_f\proxies\head_male.001","proxy:\a3\characters_f\proxies\glasses.001","proxy:\a3\characters_f\proxies\headgear.001","proxy:\a3\characters_f\proxies\hair.001","proxy:\a3\characters_f\proxies\backpack2.001","proxy:\a3\characters_f\proxies\radio.001","body_proxy","head_proxy","lefthandindex1","lefthandindex2","lefthandindex3","lefthandmiddle1","lefthandmiddle2","lefthandmiddle3","lefthandring","lefthandpinky1","lefthandpinky2","lefthandpinky3","lefthandring1","lefthandring2","lefthandring3","lefthandthumb1","lefthandthumb2","lefthandthumb3","righthandindex1","righthandindex2","righthandindex3","righthandmiddle1","righthandmiddle2","righthandmiddle3","righthandring","righthandpinky1","righthandpinky2","righthandpinky3","righthandring1","righthandring2","righthandring3","righthandthumb1","righthandthumb2","righthandthumb3","injury_hands","camo","proxy:\a3\characters_f\heads\bysta.001","injury_legs","proxy:\a3\characters_f\proxies\hmd.001","hl","insignia","injury_body","clan"]}}</code>|EXAMPLE2= | |||
|x3= [[Arma_3:_Event_Handlers#HitPart|HitPart]] hit selections only:<code>[[selectionNames]] [[player]] [[select]] { !([[player]] [[selectionPosition]] [<nowiki/>[[_x]], "HitPoints"] [[isEqualTo]] [0,0,0]) }; | |x3= [[Arma_3:_Event_Handlers#HitPart|HitPart]] hit selections only:<code>[[selectionNames]] [[player]] [[select]] { !([[player]] [[selectionPosition]] [<nowiki/>[[_x]], "HitPoints"] [[isEqualTo]] [0,0,0]) }; | ||
{{cc|["spine1","spine2","spine3","head","leftarm","leftarmroll","leftforearm","rightarm","rightarmroll","rightforearm","pelvis","leftupleg","leftuplegroll","leftlegroll","leftfoot","rightupleg","rightuplegroll","rightleg","rightlegroll","rightfoot"]}}</code>|EXAMPLE3= | |||
|seealso= [[createSimpleObject]], [[hideSelection]], [[selectionPosition]] | |seealso= [[createSimpleObject]], [[hideSelection]], [[selectionPosition]] |
Revision as of 08:21, 17 July 2020
Description
- Description:
- Returns the list of model selections
- Groups:
- Uncategorised
Syntax
- Syntax:
- selectionNames object
- Parameters:
- object: Object
- Return Value:
- Array - List of selection names
Alternative Syntax
- Syntax:
- object selectionNames LOD Template:since
- Parameters:
- object: Object
- LOD: String could be: "Memory", "Geometry", "FireGeometry", "LandContact", "HitPoints"
- Return Value:
- Nothing
Examples
- Example 1:
_house= "Land_i_House_Small_02_V3_F" createVehicle _pos; selectionNames _house; // ["door_1","door_2","damt_1","door_handle_1","door_handle_2","glass_1_hide","glass_2_hide","glass_3_hide","glass_1_unhide","glass_2_unhide","glass_3_unhide","glass_4_hide","glass_4_unhide"]
- Example 2:
selectionNames player; // ["spine","spine1","spine2","spine3","head","leftshoulder","leftarm","leftarmroll","leftforearm","leftforearmroll","lefthand","rightshoulder","rightarm","rightarmroll","rightforearm","rightforearmroll","righthand","pelvis","leftupleg","leftuplegroll","leftleg","leftlegroll","leftfoot","lefttoebase","rightupleg","rightuplegroll","rightleg","rightlegroll","rightfoot","righttoebase","weapon","proxy:\a3\characters_f\proxies\weapon.001","proxy:\a3\characters_f\proxies\pistol.001","proxy:\a3\characters_f\proxies\binoculars.001","proxy:\a3\characters_f\proxies\launcher.001","launcher","nvg","proxy:\a3\characters_f\proxies\nvg.001","proxy:\a3\characters_f\proxies\flag.001","proxy:\a3\characters_f\proxies\equipment.001","proxy:\a3\characters_f\proxies\backpack.001","proxy:\a3\characters_f\proxies\pistol_holstered.001","proxy:\a3\characters_f\proxies\head_male.001","proxy:\a3\characters_f\proxies\glasses.001","proxy:\a3\characters_f\proxies\headgear.001","proxy:\a3\characters_f\proxies\hair.001","proxy:\a3\characters_f\proxies\backpack2.001","proxy:\a3\characters_f\proxies\radio.001","body_proxy","head_proxy","lefthandindex1","lefthandindex2","lefthandindex3","lefthandmiddle1","lefthandmiddle2","lefthandmiddle3","lefthandring","lefthandpinky1","lefthandpinky2","lefthandpinky3","lefthandring1","lefthandring2","lefthandring3","lefthandthumb1","lefthandthumb2","lefthandthumb3","righthandindex1","righthandindex2","righthandindex3","righthandmiddle1","righthandmiddle2","righthandmiddle3","righthandring","righthandpinky1","righthandpinky2","righthandpinky3","righthandring1","righthandring2","righthandring3","righthandthumb1","righthandthumb2","righthandthumb3","injury_hands","camo","proxy:\a3\characters_f\heads\bysta.001","injury_legs","proxy:\a3\characters_f\proxies\hmd.001","hl","insignia","injury_body","clan"]
- Example 3:
- HitPart hit selections only:
selectionNames player select { !(player selectionPosition [_x, "HitPoints"] isEqualTo [0,0,0]) }; // ["spine1","spine2","spine3","head","leftarm","leftarmroll","leftforearm","rightarm","rightarmroll","rightforearm","pelvis","leftupleg","leftuplegroll","leftlegroll","leftfoot","rightupleg","rightuplegroll","rightleg","rightlegroll","rightfoot"]
Additional Information
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
Bottom Section
Notes
Bottom Section
- Posted on June 5, 2016 - 05:52 (UTC)
- Pennyworth
- selectionNames returns an array of named selections from only the resolution LODs.