Jump to content

Help regarding script events


Recommended Posts

Hi there ! 

 

I am currently designing a map section which features a trap-like script.

The player, upon activating it by pressing a door, is supposed to be frozen in place, while a jingle overrides the level music and an earthquake is triggered, followed by the door opening and what's behind it killing them instantly (almost like what you'd find in a TerryWad, minus the earrape) . 

 

Now, I may have not found them yet, or perhaps I missed them as they were here in plain sight, but :

  • Which script allows for the level music (say, D_STALKS for example) to end, so that a sound sample can be played instead ?
  • Which script allows for a specified actor to be "frozen in place" for the duration of the script ?

 

In advance, thank you for your help ! 

Share this post


Link to post
2 hours ago, Origamyde said:

Which script allows for the level music (say, D_STALKS for example) to end, so that a sound sample can be played instead ?

https://zdoom.org/wiki/SetMusic and https://zdoom.org/wiki/PlaySound

You would use SetMusic("") to stop the music then play the sound with PlaySound

2 hours ago, Origamyde said:

Which script allows for a specified actor to be "frozen in place" for the duration of the script ?

https://zdoom.org/wiki/SetPlayerProperty

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...