allSimpleObjects: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
|p1= classes: [[Array]] of [[String]]s - classnames array. Use {{hl|[]}} to return all simple objects | |p1= classes: [[Array]] of [[String]]s - classnames array. Use {{hl|[]}} to return all simple objects | ||
|r1= [[Array]] - | |r1= [[Array]] of [[Object]]s - all [[createSimpleObject|simple objects]] | ||
|x1= <sqf>private _boxesAndChairs = allSimpleObjects ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];</sqf> | |x1= <sqf>private _boxesAndChairs = allSimpleObjects ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];</sqf> | ||
Latest revision as of 10:37, 1 January 2026
Description
- Description:
- Returns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned including those without class name.
- Groups:
- Object Detection
Syntax
- Syntax:
- allSimpleObjects classes
- Parameters:
- classes: Array of Strings - classnames array. Use [] to return all simple objects
- Return Value:
- Array of Objects - all simple objects
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- createSimpleObject isSimpleObject nearestObjects nearObjectsReady nearObjects nearestObject createVehicle
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note