Jump to content
Sign in to follow this  
3lockad3

Building damage

Recommended Posts

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

Well how are you placing the building? Script?

Share this post


Link to post
Share on other sites

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

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

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

building = nearestObject [getPos this,buildingID];
building allowDamage false;

In the game logic init field.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×