Jump to content
Sign in to follow this  
DracoPaladore

Explosion

Recommended Posts

Greetings!

Hello, I'm just messing with my mission and I want something specific to happen. A soldier is taking cover inside of a building(got that part figured out with setPos and all) and now I just want it to explode while he is in it after a certain amount of time. I know that I can do that using a trigger and by setting time, I'm just not sure as to how to make the explosion happen. As if a tank fired into it or something.

Share this post


Link to post
Share on other sites

You can do this event like this

-Create a trigger , place it in the building area (tweak the size of the trigger to fit the building size)

-Name your soldier (for this example BOB)

-Group BOB with the trigger (select Group or press F2 and link BOB and the trigger)

At the line Min , Max , Average , put the number in second (same number for each case) you want the building to explode after BOB enter the trigger area.

At the line On Activation , just camcreate an explosive (in this example a LGB for a big explosion) at the position of BOB (1 meter under his feet , this way you will not see the bomb)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Boom = "LaserGuidedBomb" CamCreate  [(getpos BOB select 0), (getpos BOB select 1), (getpos BOB select 2)-1]

This should do the trick

Share this post


Link to post
Share on other sites

if you want him to stay alive get the object number of the building and have it colapse and have a shell hit it at the same time. shells do not hurt you they are just for show but you might want a bigger explosion.

just do:

object obj# setdammage 1

and plug shell into the camcreate instead of laserguided bomb.

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  

×