Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
riki2321

Explosion effect?

Recommended Posts

So yes, i got map spots, and everything i need for this. Yeah, how to spawn explosions then make a sector tagged with 9 become white entirely slowly?

Share this post


Link to post

Use SpawnSpot (from within a script) to spawn an explosion actor. As far as I know, there is no default explosion actor, so you will have to define it in DECORATE first. The DECORATE definition would look like this:

actor MyExplosion {
  +NOGRAVITY                                // Remove this line if you want the explosion to fall down
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_PlaySound("weapons/rocklx")
    MISL BC 10 Bright
    MISL D 10 Bright A_Explode              // Remove A_Explode if you don't want the explosion to cause splash damage
    Stop
  }
}
As for turning the sector white, you can lower its brightness and use Sector_SetFade. If you want to do it gradually, use Light_Fade for the brightness change and repeatedly called Sector_SetFade for the white fog.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×