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)
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");
}