setEditorObjectScope: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (template:command argument fix) |
||
Line 23: | Line 23: | ||
| map [[setEditorObjectScope]] [objects, editorType, condition, scope, subordinatesAlso]|= Syntax | | map [[setEditorObjectScope]] [objects, editorType, condition, scope, subordinatesAlso]|= Syntax | ||
|p1= map: [[Control]] - |= | |p1= map: [[Control]] - |PARAMETER1= | ||
|p2= [objects, editorType, condition, scope, subordinatesAlso]: [[Array]] - |= | |p2= [objects, editorType, condition, scope, subordinatesAlso]: [[Array]] - |PARAMETER2= | ||
|p3= objects: [[Array]] of [[Object|Objects]] and/or [[Editor Object|Editor Objects]] |= | |p3= objects: [[Array]] of [[Object|Objects]] and/or [[Editor Object|Editor Objects]] |PARAMETER3= | ||
|p4= editorType: [[String]] |= | |p4= editorType: [[String]] |PARAMETER4= | ||
|p5= condition: [[String]] |= | |p5= condition: [[String]] |PARAMETER5= | ||
|p6= scope: [[String]] |= | |p6= scope: [[String]] |PARAMETER6= | ||
|p7= subordinatesAlso: [[Boolean]] |= | |p7= subordinatesAlso: [[Boolean]] |PARAMETER7= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_map [[setEditorObjectScope]] [ [],"vehicle", "side effectiveCommander _x != side player", "HIDE", false]</code> |= | |x1= <code>_map [[setEditorObjectScope]] [ [],"vehicle", "side effectiveCommander _x != side player", "HIDE", false]</code> |EXAMPLE1= | ||
|x2= <code>((findDisplay 128) displayCtrl 51) [[setEditorObjectScope]] [ ["_unit_0"], "", "true", "ALLNODRAG", false]</code> |= | |x2= <code>((findDisplay 128) displayCtrl 51) [[setEditorObjectScope]] [ ["_unit_0"], "", "true", "ALLNODRAG", false]</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[addEditorObject]] [[deleteEditorObject]] [[findEditorObject]] [[getEditorObjectScope]] [[insertEditorObject]] |= | | [[addEditorObject]] [[deleteEditorObject]] [[findEditorObject]] [[getEditorObjectScope]] [[insertEditorObject]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:37, 7 April 2019
Description
- 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. "editorType" is the editor type to effect (eg "unit", "vehicle", "center") or "" for all types. "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. "scope" is one of "HIDE", "VIEW", "SELECT", "LINKTO", "LINKFROM", "ALLNODRAG", "ALLNOTREE", "ALLNOCOPY", "ALLNOSELECT" or "ALL". "subordinatesAlso" is a boolean value. If true then subordinates in the editor will be assigned the same scope as the parent.
- Groups:
- Uncategorised
Syntax
- Syntax:
- map setEditorObjectScope [objects, editorType, condition, scope, subordinatesAlso]
- Parameters:
- map: Control -
- [objects, editorType, condition, scope, subordinatesAlso]: Array -
- objects: Array of Objects and/or Editor Objects
- editorType: String
- condition: String
- scope: String
- subordinatesAlso: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
_map setEditorObjectScope [ [],"vehicle", "side effectiveCommander _x != side player", "HIDE", false]
- Example 2:
((findDisplay 128) displayCtrl 51) setEditorObjectScope [ ["_unit_0"], "", "true", "ALLNODRAG", false]
Additional Information
- See also:
- addEditorObject deleteEditorObject findEditorObject getEditorObjectScope insertEditorObject
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note