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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#13
RE: problems with scripting

Ah, I see.
For collide call back functions, you should put something different instead of (string &in asTimer)

Should be like this:

void LevelChange(string &in asParent, string &in asChild, int alState)
{
AddTimer("First",1, " TimerFunction");
AddTimer("Second",3, " TimerFunction");
}

void TimerFunction(string &in asTimer)
{
if(asTimer == "First") {
StartPlayerLookAt("Nightmare",7,100,""); // Nightmare is the enemy
}
if(asTimer == "Second") {
SetPlayerRunSpeedMul(0);
FadePlayerRollTo(60,8,15);
MovePlayerHeadPos(-1,-1.2f,0,0.4f,0.2f);
ChangeMap("Map01.map", "Game_Start", "", "");
}
}

08-12-2011, 12:27 PM
Website 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)