Ack okay, I'm sorry for once again asking of your help, but my script isn't working. I've looked through it and I'm guessing I don't have the knowledge to see if anything's wrong. Everything looks pretty normal to me, but I MIGHT have missed a detail or two
Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Flash", true, 1);
SetLightVisible("PointLight_1", false);
SetLightVisible("PointLight_2", false);
SetLightVisible("PointLight_3", false);
SetLightVisible("PointLight_4", false);
SetLightVisible("PointLight_5", false);
SetLightVisible("PointLight_6", 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);
for(int i=1;i<7;i++)
AddTimer("react", 0.5f, "TimerPlayerReact");
SetEntityActive("alexander_1", true);
SetEntityActive("alexander_2", true);
SetEntityActive("alexander_3", true);
SetEntityActive("alexander_4", true);
SetEntityActive("alexander_5", true);
SetEntityActive("alexander_6", true);
SetLightVisible("PointLight_1", true);
SetLightVisible("PointLight_2", true);
SetLightVisible("PointLight_3", true);
SetLightVisible("PointLight_4", true);
SetLightVisible("PointLight_5", true);
SetLightVisible("PointLight_6", true);
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);
CreateParticleSystemAtEntity("InternalName",) "ps_guardian_appear_explosion.ps", "alexander_1", true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_2", true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_3", true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_4", true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_5", true);
CreateParticleSystemAtEntity("InternalName", "ps_guardian_appear_explosion.ps", "alexander_6", true);
AddTimer("tut01", 5, "Part2");
}
void TimerPlayerReact(string &in asTimer)
{
PlaySoundAtEntity("react", "react_breath", "Player", 0.1f, false);
}
void Part2(string &in asTimer)
{
SetEntityActive("alexander_1", false);
SetEntityActive("alexander_2", false);
SetEntityActive("alexander_3", false);
SetEntityActive("alexander_4", false);
SetEntityActive("alexander_5", false);
SetEntityActive("alexander_6", false);
SetLightVisible("PointLight_1", false);
SetLightVisible("PointLight_2", false);
SetLightVisible("PointLight_3", false);
SetLightVisible("PointLight_4", false);
SetLightVisible("PointLight_5", false);
SetLightVisible("PointLight_6", false);
ShowEnemyPlayerPosition(string& servant_grunt_1);
ShowEnemyPlayerPosition(string& servant_grunt_2);
ShowEnemyPlayerPosition(string& servant_grunt_3);
ShowEnemyPlayerPosition(string& servant_grunt_4);
SetEntityActive("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
SetEntityActive("servant_grunt_3", true);
SetEntityActive("servant_grunt_4", true);
}