Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
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 |
|