Forum Jump :

Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#186780 Posted at 2016-02-22 17:34        
     
I discovered recently, nearestBuilding doesn't work for edited buildings (all maps) or the embedded houses on Unsung map. I don't know the behavior with the other modded maps.
So, I had to write:

_building = nearestObject [_unit,"house"];
instead of
_building = nearestBuilding _unit;

And this helped by the fact a wall isn't a house but a building, so you don't want to spawn something at every walls!. Small objects like small transmission tower (looking like a pole) remains houses (and buildings of course)...

This post was edited by Pierre MGI (2016-02-22 17:42, ago)

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS





Tags: At, Fill, Help, How, Need, Some, To