Jump to content
  • 0

How do I make an ACS script that ends when the player dies?


Gianluco

Question

I'm making a powerup that, while active, changes the music. I want to make it so that, when the player dies, the music reverts to normal.

 

This is what I've written so far:

#library "fracam"
#include "zcommon.acs"

Script "fracam" (void)
{
	setmusic("CAMGOT");
	Delay(490);
	setmusic("*");
}

 

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 1

You could have another script in your library that activates upon death, so if you want it to revert the music it would be something like: 

Script "resetmus" DEATH
{
	SetMusic("*");
}

 

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
Answer this question...

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