void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Flash", true, 1);
for(int i=1;i<7;i++)
{
SetLightVisible("PointLight_"+i, false);
}
}
void Flash(string &in asParent, string &in asChild, int alState)
{
PlayMusic("10_event_coming.ogg", true, 1.0f, 0, 0, true);
float fMin = -300.0f;
float fMax = -500.0f;
GiveSanityDamage(15, true);
AddTimer("react", 0.5f, "TimerPlayerReact");
AddTimer("tut01", 5, "Part2");
SetEntityActive("level_engine_1", false);
SetEntityActive("potion_oil_large_1", false);
SetEntityActive("potion_oil_large_2", false);
SetEntityActive("potion_oil_large_3", false);
SetLightVisible("SpotLight_1", false);
for(int i=1;i<7;i++)
{
SetEntityActive("alexander_"+i, true);
SetLightVisible("PointLight_"+i, true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_"+i, true);
}
}
void TimerPlayerReact(string &in asTimer)
{
PlaySoundAtEntity("react", "react_breath", "Player", 0.1f, false);
}
void Part2(string &in asTimer)
{
for (int i=1;i<7;i++)
{
SetEntityActive("alexander_"+i, false);
SetLightVisible("PointLight_"+i, false);
}
for (int x=1;x<5;x++)
{
ShowEnemyPlayerPosition("servant_grunt_"+x);
SetEntityActive("servant_grunt_"+x, true);
}