Maybe I should explain something more...
I had a nightmare sequence in my story. The player rans in a corridor and a monster is hunting him.
The End of the corridor is a dead end. The player enters an area then, which should make the following things:
The player break down, what means, the player falls on the ground (maybe by insanity), he looks to his Hunter (the enemy) and after a few seconds, the game change the map.
I had already a script in it but it doesn't work. Maybe it is a total fail...
Here is the script, I had tried to use:
void LevelChange(string &in asTimer)
{
if(asTimer == "1") {
StartPlayerLookAt("Nightmare",7,100,""); // Nightmare is the enemy
}
if(asTimer == "3") {
SetPlayerRunSpeedMul(0);
FadePlayerRollTo(60,8,15);
MovePlayerHeadPos(-1,-1.2f,0,0.4f,0.2f);
ChangeMap("Map01.map", "Game_Start", "", "");
}
}
I also had this line by onStart()
AddEntityCollideCallback("Player" , "Nightmare_End" , "LevelChange" , true , 1);
The names are correct, at this point, I am sure.