Jump to content

Explosion effect?


riki2321

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...