allObjects: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.10 |branch= dev |gr1= Object Manipulation |descr= Returns array of requested objects as fast as the engine allows it. The objec...") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 29: | Line 29: | ||
[[hintSilent]] [[str]] | [[hintSilent]] [[str]] | ||
[ | [ | ||
[[count]] (63 [[allObjects | [[count]] (63 [[allObjects]] 0), | ||
[[count]] (63 [[allObjects]] 1), | [[count]] (63 [[allObjects]] 1), | ||
[[count]] (63 [[allObjects]] 2), | [[count]] (63 [[allObjects]] 2), |
Revision as of 21:44, 2 May 2022
Description
- Description:
- Returns array of requested objects as fast as the engine allows it. The objects can be requested by object type and simulation kind. For object types see getObjectType. The type could be a combination of types according to bit flag operation. For example if required objects are both Visitor placed (1) and dynamically placed (8) the combine type will be 9. Use 63 to return objects of all types. The simulation kind could be:
- 0 - Slow (and very slow) entities: houses, rubles, street lamps, churches, etc.
- 1 - Normal entities: vehicles etc.
- 2 - Fast entities: shots and other high precision entities
- 3 - Cloudlets: smokes, dust, etc.
- 4 - Out vehicles: objects that are not listed anywhere else, holders, etc.
- 5 - Animals: animals, birds, insects, etc.
- 6 - Mines: mines.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- objectType allObjects simulationKind
- Parameters:
- objectType: Number - see description
- simulationKind: Number - see description
- Return Value:
- Array - array of Objects
Examples
- Example 1:
_visitorBuildings = 1 allObjects 0;
- Example 2:
_userPlacedBuildings = 8 allObjects 0;
- Example 3:
onEachFrame { hintSilent str [ count (63 allObjects 0), count (63 allObjects 1), count (63 allObjects 2), count (63 allObjects 3), count (63 allObjects 4), count (63 allObjects 5), count (63 allObjects 6) ]; };
Additional Information
- See also:
- getObjectFOV cursorObject cursorTarget createSimpleObject allMissionObjects setObjectViewDistance getObjectViewDistance objectParent object getObjectType
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