09-18-2011, 06:13 PM
Hey Guys With my custom story whenever I got through a level door it brings up an error (the one in the title)
and then my game crashes. Don't Know what to do maybe my codes wrong.
And in my other maps HPS file
Thanks
-Grey Fox
and then my game crashes. Don't Know what to do maybe my codes wrong.
Code:
////////////////////////////
// Run first time starting map
void OnEnter()
{
SetEntityPlayerInteractCallback("ToTut2", "ChangeMap", false);
}
void ChangeMap(string &in asEntity)
{
ChangeMap("Tut2.map", "PlayerStartArea_1", "", "");
}
And in my other maps HPS file
Code:
////////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityPlayerInteractCallback("ToTut1", "ChangeMap1", false);
}
void ChangeMap(string &in asEntity)
{
ChangeMap1("Tutorial.map", "PlayerStartArea_2", "", "");
}
Thanks
-Grey Fox