nearestObjects not work with "Final" unit classes, agents or not-agents (Arma 3 version 2.10).
For example, the code:
nearestObjects [player,[typeOf player],10]
Returns a empty array [].
nearestObjects not work with "Final" unit classes, agents or not-agents (Arma 3 version 2.10).
For example, the code:
nearestObjects [player,[typeOf player],10]
Returns a empty array [].
Open Arma 3 2.10
Run Eden Editor
Place a unit on the map
Start the mission
Run that on console
nearestObjects [player,[typeOf player],10]
It will return an empty array [], but should return an array with the player.
This started to happens after Arma 3 2.10
That's weird. It works for me.
Does it happen at a particular coordinate (or on a specific terrain) @keel ?
With Default Rifleman ("Rifleman" in EDEN) it works:
https://imgur.com/EVYsssu
It work or not work based if the Class is a base for another class or not:
Here a unit class that is a base for another classes ("C_man_p_shorts_1_F"): https://imgur.com/Qq9APjW
Here a unit class that is not a base for another classes ("C_man_p_shorts_1_F_afro"): https://imgur.com/TZnZ6h4
Waiting for rev.149837 to test.