Jump to content
Sign in to follow this  
Apocca

Making buildings indestructable

Recommended Posts

This has always been a big issue for me. I make a great defend map where you have to hold ontop of a building rooftop, but when the first tank pops up, BAM - no more building. Is there any good way of making a building indestructable? Or every building on the map? I know you can place the building as an object with the editor upgrade, however that messes up AI pathfinding, giving me all kinds of trouble.

Also, i'm aware of the nearestObject [***, "***"] code. Could that perhaps be used in some way to name a building, giving you the possiblity of doing a this allowDamage false on it or something? Argh, i'm in way above my head.

Share this post


Link to post
Share on other sites

Put something next to the building and add this to the init:

(nearestBuilding this) allowDamage false;

Share this post


Link to post
Share on other sites

Ah, cool :D Can you also change how many hitpoints the building has?

Share this post


Link to post
Share on other sites

That would require an eventhandler, we've had the same topic about tanks here somewhere.

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  

×