Page MenuHomeFeedback Tracker

nearestBuilding command doesn't return editor (2D 3D) placed building
New, WishlistPublic

Description

nearestBuilding (position player) or from any position, returns only house, building embedded in native Altis, Stratis maps.

No chance to get a house placed with 3den editor or edited with createVehicle command (on empty helipad as frequently done with 2D editor).

Details

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

Open editor,
place houses, hangars or any kind of building with 3eden,
or in 2D: in init field of a empty helipad:
my_house = "Land_i_House_Big_02_V3_F" createVehicle (getpos player);

run preview,
in console watch, type: nearestBuilding (getpos player)
Everywhere you watch for that, moving the player, you'll never obtain an edited building. Only map one.

Additional Information

Such map as Unsung doesn't return any nearestBuilding (or more exactly, a fake one on position [0,0,0] in fact).
On the other hand, nearestObject [getpos player, "house"] works well on such map.

In 3den editor, objects (vehicles) created on empty helipad are not visible. Helipad is present with its init field.
As well, nearestObject [getpos player, "building"] returns the empty helipad when "house" returns the house.

Event Timeline

PiepMGI edited Steps To Reproduce. (Show Details)Feb 18 2016, 11:39 PM
PiepMGI edited Additional Information. (Show Details)
PiepMGI set Category to Scripting.
PiepMGI set Reproducibility to Always.
PiepMGI set Severity to None.
PiepMGI set Resolution to Open.
PiepMGI set Legacy ID to 312656089.May 8 2016, 1:46 PM
PiepMGI added a subscriber: PiepMGI.EditedMay 31 2016, 7:50 PM

Just an info: New Unsung version doesn't return "house" for most of the huts. Barracks are OK, but Viet Huts are no more "house". (no more cursorTarget as well). Why such difference between Unsung A and B with a same map and same objects?