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



Introduced in

Version:1.19

Description

Description:Defines the level of access a user has to Editor Objects.

Syntax

Syntax:map setDefaultScope [object, scope, subordinates]
Parameters:
  • map: Control - Map control.
  • objects: Array - Array of either Editor Objects (for example, [_unit_0]) or actual Game Objects (for example, [player]). If the array is empty, then the command is applied to all Editor Objects.
  • scope: String - Can be:
    • "All": You can do anything with the given Editor Objects.
    • "AllNoCopy": You cannot copy the given Editor Objects.
    • "AllNoDrag": You cannot drag the given Editor Objects.
    • "AllNoTree": The given Editor Objects are not visible in the Scenario Objects Tree.
    • "AllNoCopyNoTree": You cannot copy the given Editor Objects, and they do not appear in the Scenario Objects Tree (V1.22+).
    • "AllNoCopyNoTreeNoEdit": You cannot copy or edit the given Editor Objects, and they do not appear in the Scenario Objects Tree (V1.22+).
    • "Hide": The given Editor Objects are not visible (and by that, you are not able to change them in any way).
    • "LinkTo": You can only link to the given Editor Objects.
    • "LinkFrom": You can only link from the given Editor Objects.
    • "Select": You can only select the given Editor Objects.
    • "View": The given Editor Objects are only visible, but no changes are possible.
  • subordinates: Boolean - If true, then subordinates in the editor are assigned the same scope as the parent.
Return Value:Nothing
  • Examples

Examples:
  • Additional Information

See also: setEditorTypeScope, setEditorObjectScope
Multiplayer:
Problems:
  • Notes