hideSelection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
|arma3|= Game name
|game1= arma3
|version1= 1.58


|1.58|= Game version
|eff= global


|eff= global|= Effects in MP
|arg= local


|arg= local|= Arguments in MP
|gr1= Object Manipulation


| Hides or enables the given selection for the object |= Description
|descr= Hides or enables the given selection for the [[createSimpleObject | simple object]]


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


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


|p2= hidden: [[Bool]] - [[True]] to hide, [[false]] to show |= Parameter 2
|r1= [[Nothing]]


| Nothing |RETURNVALUE=  
|x1=<code>_simpleObject [[hideSelection]] ["some_selection", [[true]]];</code>


|x1=<code>BIS_vehicle [[hideSelection]] [ "someSelection", [[true]] ];</code>|EXAMPLE1=
|seealso= [[createSimpleObject]], [[selectionNames]], [[allLODs]]
 
| [[createSimpleObject]], [[selectionNames]] |SEEALSO=
|  |MPBEHAVIOUR=
}}
}}
<h3 style='display:none'>Bottom Section</h3>
[[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>
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 28, 2016 - 18:13 (UTC)</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">
Only seems to work for objects created with [[createSimpleObject]], and will only work for certain selections.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 19:01, 20 June 2021

Hover & click on the images for description

Description

Description:
Hides or enables the given selection for the simple object
Groups:
Object Manipulation

Syntax

Syntax:
object hideSelection [selection, hidden]
Parameters:
selection: Object - simple object
[selection, hidden]: Array
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:
createSimpleObjectselectionNamesallLODs

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