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
Script Help Credits After Death
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#10
RE: Credits After Death

I'm not quite sure what to fix. The callback got moved to the On Enter section.

If this helps out more, here's the .hps file:

void OnStart ()
{     GiveItemFromFile("lantern", "lantern.ent");
        SetPlayerLampOil(50.0f);

        for(int i = 0;i < 3;i++)
        {
            GiveItemFromFile("potion_health", "potion_health.ent");
        }
        
        for(int i = 0;i < 3;i++)
        {
            GiveItemFromFile("potion_sanity", "potion_sanity.ent");
        }
        
        for(int i = 0;i < 2;i++)
        {
            GiveItemFromFile("potion_oil", "potion_oil.ent");
        }
        
        for(int i = 0;i < 1;i++)
        {
            GiveItemFromFile("potion_oil_large", "potion_oil_large.ent");
        }
        
    {
    AddEntityCollideCallback("Player", "thelongfallarea", "Epicness", true, 1);
    }
}

void OnEnter()
{        
    {
    AddEntityCollideCallback("Player", "PlayerStartArea_2", "Checkpoint", true, 1);
    }    
}

void OnLeave()
{

}

void Epicness(string &in parent, string &in child, int state)
{
    PlaySoundAtEntity("Epicness", "overture.snt", "thelongfallarea", 0.5, false);
}

void Checkpoint(string &in asParent, string &in asChild, int alState)
{
    CheckPoint ("", "PlayerStartArea_2", "EndGame", "Ending", "Credits");
}

void EndGame(string &in asName, int alCount)
{
StartCredits("EndGame", false, "Ending", "Credits", 5);
}

01-18-2013, 10:35 PM
Find


Messages In This Thread
Credits After Death - by AGP - 01-18-2013, 06:28 AM
RE: Credits After Death - by NaxEla - 01-18-2013, 06:57 AM
RE: Credits After Death - by AGP - 01-18-2013, 07:16 AM
RE: Credits After Death - by FlawlessHappiness - 01-18-2013, 08:03 AM
RE: Credits After Death - by AGP - 01-18-2013, 08:40 AM
RE: Credits After Death - by Linus Ågren - 01-18-2013, 08:50 AM
RE: Credits After Death - by AGP - 01-18-2013, 08:52 AM
RE: Credits After Death - by The chaser - 01-18-2013, 10:11 AM
RE: Credits After Death - by FlawlessHappiness - 01-18-2013, 10:36 AM
RE: Credits After Death - by AGP - 01-18-2013, 10:35 PM
RE: Credits After Death - by FlawlessHappiness - 01-19-2013, 12:05 AM
RE: Credits After Death - by The chaser - 01-19-2013, 12:16 AM
RE: Credits After Death - by FlawlessHappiness - 01-19-2013, 12:32 AM
RE: Credits After Death - by The chaser - 01-19-2013, 08:38 AM
RE: Credits After Death - by AGP - 01-19-2013, 01:24 AM



Users browsing this thread: 1 Guest(s)