Page MenuHomeFeedback Tracker

typeOf on nearestObjects returns an empty string for most objects
New, NormalPublic

Description

The code posted in additional information will return mostly empty strings in the array. Only buildings and select objects actually give their class name. Their class name can still be found by just adding _x and parsing the return value to get the p3d name which is identical to the class name in every instance I have seen.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Latest
Category
Scripting
Steps To Reproduce

Go into Altis, run this script and see as no walls or garbage are listed in the array copied to your clipboard. The location specified is the ruined housing development south of the domes and east of the solar towers near the airport.

Additional Information

_array = [];
{
_array pushBack (typeOf _x);
} forEach (nearestObjects[[15987.4,16269.1,0],[],500]);
copytoClipboard str(_array);

Event Timeline

jshear95 created this task.Nov 11 2016, 1:23 PM