Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Defines whether an Editor Object is visible on the map, even if the object tree it is displayed in is collapsed.

For more information, see Scenario Objects Tree in the VBS Editor Manual.

Syntax

Syntax:map setVisibleIfTreeCollapsed [edobj, visible, maxlevel]
Parameters:
  • map: Control - Map control.
  • edobj: Editor Object: - Editor Object to modify.
  • visible: Boolean - If true, then the Editor Object is visible, even if its tree is collapsed.
  • maxlevel: Number - The number of levels above the specified Editor Object that have to be collapsed, in order for the Editor Object to be hidden. Used with a the visible parameter set to false (optional, default: 0) (V3.5+).
Return Value:Nothing

Examples

Examples:
map setVisibleIfTreeCollapsed ["_unit_2", true]
map setVisibleIfTreeCollapsed ["_unit_2", false,1]

Additional Information

See also: visibleIfTreeCollapsed
Multiplayer:
Problems:

Notes