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
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#9
RE: Need various information

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

05-27-2011, 07:13 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)