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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.hps Not activating!!
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#10
RE: .hps Not activating!!

(07-26-2011, 04:56 AM)Tanshaydar Wrote: Copy and paste them here.
Well, there are two of them -.-

Cellar
////////////////////////////
//Run when entering map
void OnStart()
{
AddEntityCollideCallBack("Player", "deathroominsanity", "CollideInsanity", true, 1);
}

void CollideInsanity(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(20, true);
}

////////////////////////////
//Run when entering map
void OnEnter()

{
SetPlayerLampOil(20);
SetPlayerSanity(50);
}

////////////////////////////
//Run when leaving map
void OnLeave()

{
SetupLoadScreen("LoadingText", "CastleBase", 1, "");
}

And there's my ending to the demo here:
////////////////////////
//Run when entering map
void OnStart()
{
}

////////////////////////////
//Run when entering map
void OnEnter()
{
}

////////////////////////////
//Run when leaving map
void OnLeave()
{

StartCredits("29_amb_loop.snt", true, "Ending", "MainCredits", 1);

}

Thanks for the support by the way (:

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-26-2011, 12:50 PM
Find


Messages In This Thread
.hps Not activating!! - by ObsidianLegion - 07-25-2011, 08:56 PM
RE: .hps Not activating!! - by Tanshaydar - 07-25-2011, 08:59 PM
RE: .hps Not activating!! - by ObsidianLegion - 07-25-2011, 09:01 PM
RE: .hps Not activating!! - by Tanshaydar - 07-25-2011, 09:02 PM
RE: .hps Not activating!! - by ObsidianLegion - 07-25-2011, 09:03 PM
RE: .hps Not activating!! - by Tanshaydar - 07-25-2011, 09:06 PM
RE: .hps Not activating!! - by ObsidianLegion - 07-25-2011, 09:08 PM
RE: .hps Not activating!! - by JoeBradleyUK - 07-25-2011, 09:04 PM
RE: .hps Not activating!! - by Tanshaydar - 07-26-2011, 04:56 AM
RE: .hps Not activating!! - by ObsidianLegion - 07-26-2011, 12:50 PM
RE: .hps Not activating!! - by Kyle - 07-26-2011, 01:04 PM
RE: .hps Not activating!! - by ObsidianLegion - 07-26-2011, 08:37 PM
RE: .hps Not activating!! - by Russ Money - 07-26-2011, 08:59 PM
RE: .hps Not activating!! - by ObsidianLegion - 07-27-2011, 03:34 PM



Users browsing this thread: 1 Guest(s)