hideSelection: Difference between revisions
Jump to navigation
Jump to search
m (example and formatting) |
m (example) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | {{Command|= Comments | ||
|arma3|= Game name | |arma3|= Game name | ||
|1.58|= Game version | |1.58|= Game version | ||
|eff= global|= Effects in MP | |eff= global|= Effects in MP | ||
|arg= local|= Arguments in MP | |arg= local|= Arguments in MP | ||
| Hides or enables the given selection for the object |= Description | | Hides or enables the given selection for the object |= Description | ||
| object '''hideSelection''' [selection, hidden]; |= Syntax | | object '''hideSelection''' [selection, hidden]; |= Syntax | ||
|p1= selection: [[String]] - Selection name |= Parameter 1 | |p1= selection: [[String]] - Selection name |= Parameter 1 | ||
|p2= hidden: [[Bool]] - [[True]] to hide, [[false]] to show |= Parameter 2 | |p2= hidden: [[Bool]] - [[True]] to hide, [[false]] to show |= Parameter 2 | ||
| Nothing |= RETURNVALUE | | Nothing |= RETURNVALUE | ||
</code>BIS_vehicle [[hideSelection]] [ "someSelection", [[true]] ];</code>|= EXAMPLE1 | |||
|x1=</code>BIS_vehicle [[hideSelection]] [ "someSelection", [[true]] ];</code>|= EXAMPLE1 | |||
| [[createSimpleObject]], [[selectionNames]] |= SEEALSO | | [[createSimpleObject]], [[selectionNames]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 12:55, 13 June 2018
Description
- Description:
- Hides or enables the given selection for the object
- Groups:
- Uncategorised
Syntax
- Syntax:
- object hideSelection [selection, hidden];
- Parameters:
- selection: String - Selection name
- hidden: Bool - True to hide, false to show
- Return Value:
- Nothing
Examples
- Example 1:
- BIS_vehicle hideSelection [ "someSelection", true ];
Additional Information
- See also:
- createSimpleObjectselectionNames
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 April 28, 2016 - 18:13 (UTC)
- Waffle SS.
- Only seems to work for objects created with createSimpleObject, and will only work for certain selections.