//---!! IMPORTANT !!--//
// make sure you change "areaPortrait" to match the area in your map
void OnStart()
{
AddEntityCollideCallback("Player", "areaPortrait", "CollideAreaPortrait", true, 1);
}
// the code you posted, with some lines I added to help you debug
void CollideAreaPortrait(string &in asParent, string &in asChild, int alState)
{
AddTimer("TimerFadeIn", 1.5f, "FadeInGuardien");
FadeOut(0.1f);AddDebugMessage("faded out", false);
}
void FadeInGuardien(string &in asTimer)
{
FadeIn(0.05f);
StartScreenShake(0.1f,1, 0.5f,0.5f);
FadeSepiaColorTo(15, 1);
SetPlayerActive(true); AddDebugMessage("fading to sepia", false);
}