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
Announcement Dark Salvation: The Unspoken Words demo release
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#4
RE: Dark Salvation: The Unspoken Words demo release

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

{
SetupLoadScreen("LoadingText", "Cellar", 1, "");
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, "");
}


Try that, see if it helps at all.
(This post was last modified: 07-22-2011, 12:37 PM by Obliviator27.)
07-22-2011, 12:35 PM
Find


Messages In This Thread
RE: Dark Salvation: The Unspoken Words demo release - by Obliviator27 - 07-22-2011, 12:35 PM



Users browsing this thread: 1 Guest(s)