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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#12
RE: Credits After Death

I think your script has quite some mistakes, AGP... here I go, this should fix it:


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 asParent, string &in asChild, int alState)

{

PlaySoundAtEntity("Epicness", "overture.snt", "thelongfallarea", 0.5, false);

}



void Checkpoint(string &in asName, int alCount)

{

CheckPoint ("", "PlayerStartArea_2", "EndGame", "Ending", "Credits");

}



void EndGame(string &in asName, int alCount)

{

StartCredits("EndGame", false, "Ending", "Credits", 5);

}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-19-2013, 12:16 AM
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)