hideSelection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (example)
(Undo revision 138178 by killzone_kid (talk) the command is for simple object only pretty sure hide[] is not necessary,)
Tag: Undo
(11 intermediate revisions by 4 users not shown)
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|Multiplayer Effects=


|arg= local|= Arguments in MP
|arg= local|Multiplayer Arguments=


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


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


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


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


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


|x1=<code>BIS_vehicle [[hideSelection]] [ "someSelection", [[true]] ];</code>|= EXAMPLE1
| [[createSimpleObject]], [[selectionNames]] |SEEALSO=  
 
|  |MPBEHAVIOUR=  
| [[createSimpleObject]], [[selectionNames]] |= SEEALSO
|  |= MPBEHAVIOUR
}}
}}


Line 36: Line 37:


<h3 style="display:none">Bottom Section</h3>
<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 22:37, 20 October 2019

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_simpleObject hideSelection ["some_selection", 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