(10-20-2015, 01:50 PM)WALP Wrote: The function is the way it should be, the problem is not with it, but either another part of your script or something external. Try pasting us the entirety of your script.
ll my scripts work good but this changemap no
I try one change and then second, and in this script i use both without effect...
Everything work (fade,Imagetrail, but not changemap
--------------------------------
///END OF THE MAP
bool EndOfTheMap(const tString &in asParent, const tString &in asChild, int alState)
{
Entity_SetActive("TriggerArea_10",false);
Effect_Fade_Out(2.0f);
Effect_ImageTrail_FadeOut(1,10.0f);
Map_AddTimer("",3.0f,"EndMapTimer");
return true;
}
void EndMapTimer(const tString &in asTimer)
{
Map_ChangeMap("02_Generators.hpm", "PlayerStartArea_1", "", "");
}