Page MenuHomeFeedback Tracker

nearestBuilding is unable to detect barracks
Closed, ResolvedPublic

Description

Since the Marksmen update, the nearestBuilding command is no longer able to detect barracks buildings (Land_i_Barracks_V1_F, Land_i_Barracks_V2_F). Instead, it will just return the 2nd closest building. {F26150}

Details

Legacy ID
633239372
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting

Event Timeline

AgentRev set Category to Scripting.Apr 19 2015, 10:13 PM
AgentRev set Reproducibility to Always.
AgentRev set Severity to None.
AgentRev set Resolution to Fixed.
AgentRev set Legacy ID to 633239372.May 8 2016, 11:58 AM
Adam added a subscriber: Adam.May 8 2016, 11:58 AM
Adam added a comment.Apr 20 2015, 1:07 PM

Hello,

Try reproducing the issue using on of these codes:

_nBuilding = nearestBuilding player;
_nBuilding = nearestBuilding position player;

And if the issue is still present let me know.

Thank you.

On stable or dev?

Adam added a comment.Apr 20 2015, 1:19 PM

Try stable if its not working there then try Dev.

Thanks again.

There, screenshot proof for v1.42 stable. Taken at barracks next to the ATC tower at Altis Airport. Does the same thing for Selakano barracks, and the barracks in the middle of Stratis also.

The problem appears to be fixed in v1.44, the issue can be closed.