Difference between revisions of "hideSelection"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Undo revision 138177 by killzone_kid (talk))
(Tag: Undo)
(Undo revision 138178 by killzone_kid (talk) the command is for simple object only pretty sure hide[] is not necessary,)
(Tag: Undo)
 
Line 37: 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 October 19, 2019 - 12:52 (UTC)</dd>
 
<dt class="note">[[User:DrSova|DrSova]]</dt>
 
<dd class="note">
 
You need to add a selection into '''hiddenSelections[]''' parameter or '''hide[]''' (subclass '''SimpleObject''') parameter in a config class, if you want to hide selection via this command.
 
</dd>
 
</dl>
 
<!-- DISCONTINUE Notes -->
 

Latest revision as of 22:37, 20 October 2019

Introduced with Arma 3 version 1.581.58Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
Hover & click on the images for descriptions

Description

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

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

i
Only post proven facts here. Report bugs on the feedback tracker and discuss on the Arma Discord or on the Forums.

Bottom Section

Notes

Bottom Section