hideSelection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments |arma3|= Game name |1.58|= Game version | Hides or enables the given selection for the object |= Description | object '''hideSelection''' [selection, hidd...")
 
m (Some wiki formatting)
 
(47 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
|arma3|= Game name
|game1= arma3
|1.58|= Game version
|version1= 1.58
| Hides or enables the given selection for the object |= Description
 
| object '''hideSelection''' [selection, hidden]; |= Syntax
|eff= global
|p1= selection: [[String]] - Selection name |= Parameter 1
 
|p2= hidden: [[Bool]] - Hide this? |= Parameter 2
|arg= local
| Nothing |= RETURNVALUE
 
</code>|= EXAMPLE1
|gr1= Object Manipulation
| [[createSimpleObject]], [[selectionNames]] |= SEEALSO
 
|  |= MPBEHAVIOUR
|descr= Hides or shows the [[createSimpleObject | simple object]]'s provided selection.
}}
 
|s1= object [[hideSelection]] [selection, hidden]
 
|p1= object: [[Object]] - simple object
 
|p2= selection: [[String]] - selection name
 
|p3= hidden: [[Boolean]] - [[true]] to hide, [[false]] to show


<h3 style='display:none'>Bottom Section</h3>
|r1= [[Nothing]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]


<h3 style='display:none'>Notes</h3>
|x1= <sqf>_simpleObject hideSelection ["some_selection", true];</sqf>
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[createSimpleObject]] [[selectionNames]] [[allLODs]]
}}

Latest revision as of 17:23, 15 August 2022

Hover & click on the images for description

Description

Description:
Hides or shows the simple object's provided selection.
Groups:
Object Manipulation

Syntax

Syntax:
object hideSelection [selection, hidden]
Parameters:
object: Object - simple object
selection: String - selection name
hidden: Boolean - true to hide, false to show
Return Value:
Nothing

Examples

Example 1:
_simpleObject hideSelection ["some_selection", true];

Additional Information

See also:
createSimpleObject selectionNames allLODs

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