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



Introduced in

Version:1.00

Description

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

Syntax

Syntax:map setEditorObjectScope [objects, editorType, condition, scope, subordinates]
Parameters:
  • map: Control - Map control.
  • objects: Array - Array of either Editor Object (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.
  • editorType: String - The Editor Object type to effect (for example, "group", "marker", "object", "unit", "vehicle", "waypoint", or "" for none).
  • condition: String - Executable string that must evaluate to true or false. If true, the scope of the evaluated Editor Object is modified. An empty string ("") is considered true.
  • 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 (upper-right tab in OME / RTE).
    • "AllNoSelect": You cannot select the given Editor Objects.
    • "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 Scenario Objects Tree (V1.22+).
    • "Hide": The given Editor Objects are not visible at all (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, no changes possible.
  • subordinates: Boolean - If true, then subordinates in the editor are assigned the same scope as the parent.
Return Value:Nothing

Examples

Examples:
"_map setEditorObjectScope [["_vehicle_2"], "vehicle", "side effectiveCommander _x != side player", "HIDE",false]; 

Additional Information

See also: getEditorObjectScope, setDefaultScope, setEditorTypeScope
Multiplayer:
Problems:

Notes