Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need various information
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#8
RE: Need various information

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

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);
}

I probably made a LP of this! Youtube channel here!
05-27-2011, 07:03 PM
Find


Messages In This Thread
Need various information - by KenOfAllTrades - 05-25-2011, 07:40 PM
RE: Need various information - by palistov - 05-25-2011, 08:00 PM
RE: Need various information - by KenOfAllTrades - 05-25-2011, 08:12 PM
RE: Need various information - by palistov - 05-25-2011, 10:34 PM
RE: Need various information - by KenOfAllTrades - 05-26-2011, 02:41 PM
RE: Need various information - by palistov - 05-27-2011, 12:50 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 10:09 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:03 PM
RE: Need various information - by Kyle - 05-27-2011, 07:13 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:50 PM
RE: Need various information - by Kyle - 05-27-2011, 07:53 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 08:20 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:00 PM
RE: Need various information - by Kyle - 05-28-2011, 09:04 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:08 PM
RE: Need various information - by Kyle - 05-28-2011, 09:10 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 07:08 PM
RE: Need various information - by Kyle - 05-30-2011, 10:29 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 10:32 PM
RE: Need various information - by Kyle - 05-30-2011, 10:35 PM
RE: Need various information - by KenOfAllTrades - 06-01-2011, 12:45 PM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 08:17 AM
RE: Need various information - by Kyle - 06-06-2011, 11:15 AM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 11:18 AM



Users browsing this thread: 1 Guest(s)