findEditorObject (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.00
Description
- Description:
- Return object that matches the provided reference.
If no match is found, an empty string is returned.
Syntax
- Syntax:
- map findEditorObject [type,qualifiers,...]
- Parameters:
- map: Control -
- type: String - Type of editor object (e.g. "unit" or "waypoint", etc.)
- qualifiers: Anything - further qualifiers for specific editor object type (e.g. Object or "NEXTTASK", etc.)
- Return Value:
- String - editor object's name
Examples
- Example 1:
_edObj = _map findEditorObject ["unit",_x];
- Example 2:
_edObj = _map findEditorObject ["waypoint","PARENT",_groupEdObj];
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- findEditorObjects, evalObjectArgument
Notes
Notes
Notes
- Kronzky
- To retrieve the respective Object that belongs to an editor object, use the following syntax (_x stands for the editor object name):
_obj = _map evalObjectArgument [_x,"VARIABLE_NAME"];

