Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with scripting
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#12
RE: problems with scripting

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

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

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.





08-12-2011, 10:58 AM
Find


Messages In This Thread
problems with scripting - by Brute - 08-11-2011, 11:51 AM
RE: problems with scripting - by Your Computer - 08-11-2011, 03:07 PM
RE: problems with scripting - by Brute - 08-11-2011, 04:48 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:11 PM
RE: problems with scripting - by Brute - 08-11-2011, 06:41 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:48 PM
RE: problems with scripting - by plutomaniac - 08-11-2011, 10:23 PM
RE: problems with scripting - by Brute - 08-12-2011, 08:20 AM
RE: problems with scripting - by plutomaniac - 08-12-2011, 09:35 AM
RE: problems with scripting - by Brute - 08-12-2011, 09:53 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 10:02 AM
RE: problems with scripting - by Brute - 08-12-2011, 10:58 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-12-2011, 01:13 PM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 02:01 PM
RE: problems with scripting - by Tesseract - 08-12-2011, 02:06 PM
RE: problems with scripting - by Brute - 08-12-2011, 03:01 PM
RE: problems with scripting - by Tesseract - 08-13-2011, 01:50 AM
RE: problems with scripting - by Endlvl - 08-12-2011, 03:25 PM
RE: problems with scripting - by Brute - 08-13-2011, 08:14 AM
RE: problems with scripting - by Tesseract - 08-13-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-13-2011, 01:19 PM
RE: problems with scripting - by Brute - 08-16-2011, 05:15 PM
RE: problems with scripting - by Brute - 08-19-2011, 06:23 PM



Users browsing this thread: 1 Guest(s)