Page MenuHomeFeedback Tracker

House types are no longer in "House_F"
New, WishlistPublic

Description

We experienced some issues with the following house-types since Nexus Update.
This issue obstruct our housing-system for some players.

Affected Houses:

  • Land_i_House_Small_03_V1_F
  • Land_i_Stone_HouseSmall_V1_F
  • Land_i_Stone_HouseSmall_V2_F
  • Land_i_Stone_HouseSmall_V3_F

On any other house the following reproduction checks work.

Details

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

Open debug console and check:

_housetype = nearestbuilding (getpos player); hint str _housetype; returns other building near player
_housetype = (typeOf cursortarget); hint str _housetype;
returns nothing
if(cursortarget iskindof "House_F") then {hint "yes"} else {hint "no"}; //returns no

Event Timeline

G00golplexian set Category to Scripting.
G00golplexian set Reproducibility to Always.
G00golplexian set Severity to None.
G00golplexian set Resolution to Open.
G00golplexian set Legacy ID to 2804498718.May 8 2016, 1:14 PM
commy2 added a subscriber: commy2.May 8 2016, 1:14 PM

Same as http://feedback.arma3.com/view.php?id=26798.

Just for the record. The last repro example has the wrong syntax. It should be:
_checktype = cursortarget isKindOf "House_F"; hint str _checktype;

You're right, my fault. I updated it.

Thanks for your reply.

Works on houses created by script, have you got coordinates to where on the map you are testing it?

shukari added a subscriber: shukari.May 8 2016, 1:14 PM

Altis, use for the exact Position:
"player setPos [4561.39,13309.2,0.0014801]; player setDir 206.876"

Use under watch:
First line: [str nearestbuilding (getpos player),cursortarget]
Second line: [typeOf nearestbuilding (getpos player),typeOf cursortarget]

cursorTarget is null,
nearestbuilding is not null

Confirmed, though nearestbuilding detects something else. nearestobject [player, "house"] seems to detect the correct house.

nearestTerrainObjects [position player, ["house"], 50]

seems to work as well

Hello there,
nearly every house on "Altis" with the mentioned classnames didn't work with named script-commands.

Will there be a fix to get those houses aimed with cursortarget? Otherwise I will do a workaround meanwhile.

Didn't know from nearestTerrainObjects. Maybe I'll give it a try, thanks.

Regards,
G00golplexian

"Will there be a fix to get those houses aimed with cursortarget?"

There will be a new scripting command "cursorObject" that should take care of this as "cursorTarget" is not quite suitable for this kind of detection by design.

PiepMGI added a subscriber: PiepMGI.May 8 2016, 1:14 PM

I did an HUD addon showing a "nearestbuilding" icon. Could you fix this command, please? The aim is to avoid one more heavy code instead of a smart command.

In today's DEV nearestbuilding correctly returned the house shukari posted. Any other reproes where nearestbuilding fails?