Have checked the forums, not the right answers.
This is my problem, I wanna destroy a building.
First I'm using Nearestbuilding command: _Building = NearestBuilding Player (To find the building id code)
This returns: Null object
Used _Building = NearestObject [Player, "B1"] (where B1 is the name of the addon building, I know this should be type and it also do not give results)
Returns: Null Object
my idea is to make my own Cti mission and need this. Ai destroy my building, the workers check that it's dammaged and repair it or if destroyed delete the building after a while.
This is part of my test script:
Hint "Script Started"
~1
;_Building = NearestObject [Player, "B1"]
~1
_Building = NearestBuilding Player
;~1
titletext[format["The nearest building is: %1",_Building],"PLAIN DOWN"]
~1
_Building setdammage 3
Nothing happens to my building, also tried 30 satchel charges no dammage, used 3 X abrams fired all ammo to no avail the building doesn't even get a scratch on it even dropped three nuclear missiles on it.
Are the buildings undestructable or what am I doing wrong?
It's only me and the building on the map.