hideSelection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style='display:none'>Bottom Section</h3>" to "")
m (Some wiki formatting)
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command
|arma3
|game1= arma3
 
|version1= 1.58
|1.58


|eff= global
|eff= global
Line 10: Line 9:
|gr1= Object Manipulation
|gr1= Object Manipulation


| Hides or enables the given selection for the [[createSimpleObject | simple object]]
|descr= Hides or shows the [[createSimpleObject | simple object]]'s provided selection.


| object '''hideSelection''' [selection, hidden]
|s1= object [[hideSelection]] [selection, hidden]


|p1= selection: [[Object]] - simple object
|p1= object: [[Object]] - simple object
|p2= [selection, hidden]: [[Array]]
|p3= selection: [[String]] - selection name
|p4= hidden: [[Boolean]] - [[true]] to hide, [[false]] to show


| [[Nothing]]
|p2= selection: [[String]] - selection name


|x1=<code>_simpleObject [[hideSelection]] ["some_selection", [[true]]];</code>
|p3= hidden: [[Boolean]] - [[true]] to hide, [[false]] to show


| [[createSimpleObject]], [[selectionNames]]
|r1= [[Nothing]]
|
}}


{{GameCategory|arma3|Scripting Commands}}
|x1= <sqf>_simpleObject hideSelection ["some_selection", true];</sqf>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|New Scripting Commands}}


<dl class="command_description">
|seealso= [[createSimpleObject]] [[selectionNames]] [[allLODs]]
<!-- BEGIN Note Section -->
}}
<!-- END Note Section -->
</dl>

Latest revision as of 16: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