Origamyde Posted April 19, 2021 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 ! 0 Quote Share this post Link to post
snapshot Posted April 20, 2021 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 4 Quote Share this post Link to post
Origamyde Posted April 20, 2021 7 hours ago, sluggard said: 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 https://zdoom.org/wiki/SetPlayerProperty I had my suspicions around SetMusic, but SetPlayerProperty is a super nice addition! Thanks, @sluggard! :0 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.