I know how to make a player teleport when he/she touches a area:
void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(teleport_name);
}
-teleport_name: Name of what to teleport to, I recommend making another PlayerStartArea and giving the name of the extra player spawn.
To give a good touch to it, add the functions: FadeOut and FadeIn. Add it like this:
void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(teleport_name);
FadeOut(0);
FadeIn(20);
}
Adding FadeOut and FadeIn makes the screen fade right when you teleport so its not like you just somehow ended up there.
Can you add this?
Edit: I know how to add music in your level:
void OnStart()
{
PlayMusic("name of song", false, 0.7f, 0, 10, false);
}
-name of song: This is the name of the song you want to play on start. All music is in a folder called: music. If you have the Steam version of Amnesia, it will be in: Steam\steamapps\common\amnesia the dark descent
If you have the retail version, I don't have the retail version, I'm making a guess right now, the music folder should be in: program files/amnesia the dark descent/redist/
I hope thats right. Anyways, when you get there, you will see all the music. I don't know how to view the music though. They are .ogg files. Just look at the name of the songs. You'll figure everything out.
When you are ready to place the name of the song in the PlayMusic function, Replace Name of Song with the song name you chose. It automaticly goes to the music folder. So don't worry about adding something like:
PlayMusic("redist/music/song name.ogg", false, 0.7f, 0, 10, false);
Right way:
PlayMusic("name of song.ogg", false, 0.7f, 0, 10, false);
Can you add this?