allMissionObjects: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "</br>" to "<br>") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 15: | Line 15: | ||
<br><br> | <br><br> | ||
Some of the unusual mission objects that can be detected with this command as well as with [[nearestObject]]: | Some of the unusual mission objects that can be detected with this command as well as with [[nearestObject]]: | ||
* | * {{hl|""}} - returns everything like agents, bees, mosquitoes, foot prints (footstep), armed mines... | ||
* | * {{hl|"all"}} - more restrictive than {{hl|""}}: no ambient insects, just agents like rabbits and snakes, no foot prints, tracks, no armed mines | ||
* <tt>"#slop"</tt> - blood drop | * <tt>"#slop"</tt> - blood drop | ||
* <tt>"#mark"</tt> - unit footprints | * <tt>"#mark"</tt> - unit footprints | ||
Line 26: | Line 26: | ||
* <tt>"#soundonvehicle"</tt> - sound created with [[say3D]] for example | * <tt>"#soundonvehicle"</tt> - sound created with [[say3D]] for example | ||
* <tt>"#dynamicsound"</tt> - sound source created using [[createSoundSource]] | * <tt>"#dynamicsound"</tt> - sound source created using [[createSoundSource]] | ||
* | * {{hl|"EmptyDetector"}} - All [[trigger]]s | ||
* | * {{hl|"Logic"}} - All game logics | ||
{{Feature|Important|This command is quite performance heavy. Use with caution!}} | {{Feature|Important|This command is quite performance heavy. Use with caution!}} | ||
Revision as of 00:43, 16 November 2021
Description
- Description:
- Returns all mission objects which were created by and during the mission with given type or its subtype. In some cases allMissionObjects. Sometimes allMissionObjects could be replaced by the much faster entities command.
Some of the unusual mission objects that can be detected with this command as well as with nearestObject:- "" - returns everything like agents, bees, mosquitoes, foot prints (footstep), armed mines...
- "all" - more restrictive than "": no ambient insects, just agents like rabbits and snakes, no foot prints, tracks, no armed mines
- "#slop" - blood drop
- "#mark" - unit footprints
- "#track" - vehicle tracks
- "#crater" - explosion crater on the ground
- "#crateronvehicle" - bullet marks on vehicle
- "#explosion" - an explosion
- "#objectdestructed" - building, tree or bush destruction
- "#soundonvehicle" - sound created with say3D for example
- "#dynamicsound" - sound source created using createSoundSource
- "EmptyDetector" - All triggers
- "Logic" - All game logics
- Multiplayer:
- Groups:
- Object Detection
Syntax
- Syntax:
- allMissionObjects type
- Parameters:
- type: String
- Return Value:
- Array of Objects
Examples
- Example 1:
_airObjects = allMissionObjects "Air";
- Example 2:
{ deleteVehicle _x } forEach (allMissionObjects "");
- Example 3:
_allMObjects =allMissionObjects "All";
Additional Information
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