Warning: file_put_contents(/ff_c00b2627c8830037dfd3f48813035e01ea93ced6a6bf80e6.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setEditorObjectScope - OFPEC Scripting Command Reference | OFPEC The Editing Center

map setEditorObjectScope [objects,editor type,condition,scope,subordinates also]

Operand types

map: Control
[objects,editor type,condition,scope,subordinates also]: Array

Type of returned value

Description

This command defines the level of access a user has to editor objects.

'objects' is an array of either Editor Objects (eg [_unit_0]) or actual Game Objects (eg [player]).
If the array is empty then the command will automatically parse all editor objects.

'editor type' is the editor type to effect (eg unit), or for none.

'condition' is an executable string that must evaluate to true or false.
If true, the scope of the evaluated editor object will be modified.

'scope' is one of HIDE, VIEW, SELECT, LINKTO, LINKFROM, ALLNODRAG, ALLNOTREE or ALL.

'subordinates also' is a boolean value, if true then subordinates in the editor will be assigned the same scope as the parent.

Used In

Arma2

Example

_map setEditorObjectScope [[],vehicle,side effectiveCommander _x != side player,HIDE,false];

Advertisement