06-30-2012, 12:16 AM
I'm having a hard time trying to get this script to work! The problem is when I'm trying to change the map with a level door. The first map works fine, but when I'm trying to use the level door I keep on getting this message! (See the picture) ![[Image: fatalerrorc.th.png]](http://img709.imageshack.us/img709/2896/fatalerrorc.th.png)
Oh yeah and btw, my script looks like this atm:
void OnStart ()
{
AddEntityCollideCallback("Player", "activate_monster", "ActivateMonster", true, 1);
AddEntityCollideCallback("Player", "Tp_script_1", "Tp_Active", true, -1);
}
void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", ture);
}
void Tp_Active(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Tp_Guy_1", true);
AddPropForce("Tp_Guy_1", 0, 0, -10000, "World");
}
![[Image: fatalerrorc.th.png]](http://img709.imageshack.us/img709/2896/fatalerrorc.th.png)
Oh yeah and btw, my script looks like this atm:
void OnStart ()
{
AddEntityCollideCallback("Player", "activate_monster", "ActivateMonster", true, 1);
AddEntityCollideCallback("Player", "Tp_script_1", "Tp_Active", true, -1);
}
void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", ture);
}
void Tp_Active(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Tp_Guy_1", true);
AddPropForce("Tp_Guy_1", 0, 0, -10000, "World");
}
