Jump to content
Sign in to follow this  
That guy Over there

Start With Destroyed Buildings

Recommended Posts

i would like to know if there is some kind of script that destroys certain building on start of the mission (Such as the buildings in Chernogorsk) it would be useful for a Ending of a small war (Buildings Destroyed, Landmarks Scorched).

Share this post


Link to post
Share on other sites

Place a logic in the middle of the area you want destroyed.

Put this into its init field:

{
    _x setDamage 1;
} forEach (nearestObjects [this, ["Classname1", "Classname2", "Classname3"], 100]);

Classname1...3 are the classes of buildings you want to blow up.

100 is the destruction radius.

Share this post


Link to post
Share on other sites

Place a trigger named demolitiontrigger1

Condition: true

On act: {_x setDamage 1} forEach nearestObjects [demolitiontrigger1,[],5]

It will destroy any object within a 5 meter radius of the trigger, you can set the trigger area to correspond to that radius for your convenience.

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  

×