08-06-2012, 06:50 PM
this is my script:
When the player passes the area of script, the layer freezes, but does not look at the object in question, plus also the void capitolo01 does not work
Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_4", "capitoloz", true, 1);
}
void void capitoloz(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 1, "capitolo0");
SetPlayerActive(false);
}
void capitolo0(string &in asTimer)
{
PreloadSound("impact_glass_high.snt");
StartPlayerLookAt("home", 1, 1, "capitolo01");
}
void capitolo01(string &in asParient, string &in asChild, int alState)
{
AddTimer("", 4.0f, "capitolo02");
StopPlayerLookAt();
}
When the player passes the area of script, the layer freezes, but does not look at the object in question, plus also the void capitolo01 does not work