3lockad3 11 Posted April 15, 2015 I used to have the solution, however I can't find it anymore. Is there a way to make none editor placed buildings impervious to damage ? Playing on a map and the building keeps collapsing after just a few bullets. I have looked for about 2 hrs and I can't find anything Please help! Share this post Link to post Share on other sites
jshock 513 Posted April 15, 2015 Well how are you placing the building? Script? Share this post Link to post Share on other sites
3lockad3 11 Posted April 15, 2015 No, they are on the map. I used to be able to control the damage via logic and ID number, but I can't seem to dig up the old syntax I used to use. Share this post Link to post Share on other sites
jshock 513 Posted April 15, 2015 Sorry was a bit confused by your wording: _building = nearestObject [_somePos,buildingID]; _building allowDamage false; Share this post Link to post Share on other sites
3lockad3 11 Posted April 16, 2015 Yes, that looks like it, now the _somePos does in need litigation ? Or is it just the building id ? Trying this right now. And thank you so much! ---------- Post added at 00:10 ---------- Previous post was at 00:02 ---------- _building = nearestObject [029166,5171]; _building allowDamage false; Like this ? Oh and in an Game logic ? Share this post Link to post Share on other sites
jshock 513 Posted April 16, 2015 building = nearestObject [getPos this,buildingID]; building allowDamage false; In the game logic init field. Share this post Link to post Share on other sites