Page MenuHomeFeedback Tracker

No object ID returned for default static objects on the map
New, WishlistPublic

Description

Certain objects which are on the map by default, I'll list a few examples:
Land_BC_Basket_F
Land_BC_Court_F

will not return any object ID if they're being looked for by
nearEntities
nearestBuilding
nearestObject
nearestObjects
nearObjects

If you add them by custom in your own mission, the scripts will ALWAYS return an ID though.

This must mean, that there is some kind of bug or misconfiguration causing, that you won't find the static/default ones.

{F24074}

Details

Legacy ID
3381292202
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Make a simple editor mission, add an init.sqf into the mission folder with the following line:
player addAction ["<t color='#0055FF'>Search</t>", "searchobject.sqf"];

Then, add the attached file "searchobject.sqf" in the same directory, load the mission again and preview the mission.

Scroll your mousewheel, press middlemouse/spacebar to run the script while you're in 50 meters range of the object "Land_BC_Basket_F", an example screenshot of it can be found here:
https://community.bistudio.com/wikidata/images/b/b1/Arma3_CfgVehicles_Land_BC_Basket_F.jpg

One of the possible positions it can be found is in the coordinates: 036131

The script will tell you not found, except if you placed the object by yourself in the mission.

Event Timeline

SINE edited Steps To Reproduce. (Show Details)Jun 12 2014, 2:13 AM
SINE edited Additional Information. (Show Details)
SINE set Category to Scripting.
SINE set Reproducibility to Always.
SINE set Severity to None.
SINE set Resolution to Open.
SINE set Legacy ID to 3381292202.May 7 2016, 6:44 PM
SINE added a subscriber: SINE.May 7 2016, 6:44 PM
Ghost added a comment.Jun 23 2014, 5:16 AM

For some reason BI decided to disable the finding of many map objects using various commands. They claim it increases performance. In reality it reduces what we can do with our missions. I had a system to find wrecks on the map and create objectives around them. But that is no more now I have to place them myself which is absurd. Please BI bring back the option to find all objects on map.