{"name":"setEditorObjectScope","operator":null,"title":"setEditorObjectScope","type":"command","url":"https://community.bistudio.com/wiki/setEditorObjectScope","revid":363242,"updated":"2024-03-26T10:51:18Z","groups":["Game 2 Editor"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"This command defines the level of access a user has to editor objects.\n\n\"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.\n\n\"editorType\" is the editor type to effect (eg \"unit\", \"vehicle\", \"center\") or \"\" for all types.\n\n\"condition\" is an executable string that must evaluate to true or false. If true, the scope of the evaluated editor object will be modified. \"_x\" can be used in the string as reference to the ingame representation of the currently processed array member.\n\n\"scope\" is one of \"HIDE\", \"VIEW\", \"SELECT\", \"LINKTO\", \"LINKFROM\", \"ALLNODRAG\", \"ALLNOTREE\", \"ALLNOCOPY\", \"ALLNOSELECT\" or \"ALL\".\n\n\"subordinatesAlso\" is a boolean value. If true then subordinates in the editor will be assigned the same scope as the parent.\n\n> [!NOTE]\n> Some Old Editor Command","syntaxes":[{"syntax":"map setEditorObjectScope [objects, editorType, condition, scope, subordinatesAlso]","since":null,"effect":null,"exec":null,"params":[{"name":"map","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"map: Control"},{"name":"[objects, editorType, condition, scope, subordinatesAlso]","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"[objects, editorType, condition, scope, subordinatesAlso]: Array"},{"name":"objects","type":"Array of Objects and/or Editor Objects","optional":false,"default":null,"description":null,"types":["Array","Object","Editor Object"],"since":null,"text":"objects: Array of Objects and/or Editor Objects"},{"name":"editorType","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"editorType: String"},{"name":"condition","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"condition: String"},{"name":"scope","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"scope: String"},{"name":"subordinatesAlso","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"subordinatesAlso: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"map","types":["Control"]},"right":{"text":"[objects, editorType, condition, scope, subordinatesAlso]","types":["Array"]}}],"examples":[{"text":"```sqf\n_map setEditorObjectScope [[],\"vehicle\", \"side effectiveCommander _x != side player\", \"HIDE\", false];\n```","code":["_map setEditorObjectScope [[],\"vehicle\", \"side effectiveCommander _x != side player\", \"HIDE\", false];"]},{"text":"```sqf\n((findDisplay 128) displayCtrl 51) setEditorObjectScope [[\"_unit_0\"], \"\", \"true\", \"ALLNODRAG\", false];\n```","code":["((findDisplay 128) displayCtrl 51) setEditorObjectScope [[\"_unit_0\"], \"\", \"true\", \"ALLNODRAG\", false];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addEditorObject","deleteEditorObject","findEditorObject","getEditorObjectScope","insertEditorObject"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Game 2 Editor","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}