The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
problem with monsters and sanity
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#1
problem with monsters and sanity

hi
i have 2 problems with monsters in my custom story.
1. problem: i don't want the player to lose sanity when looking at monsters. in the wiki it says
Quote:void SetSanityDrainDisabled(bool abX);



Enables/Disables sanity drain from darkness, monsters, etc
however, it does not work for me. i tried different ways but nothing worked.
void OnStart()
{
    AddTimer("t1",1,"sanitydrain");
    SetSanityDrainDisabled(true);    
}

void sanitydrain(string &in asTimer){
    SetSanityDrainDisabled(true);
    AddDebugMessage("no sanity drain", false);
}


////////////////////////////
// Run when entering map
void OnEnter()
{
    SetSanityDrainDisabled(true);
}

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

}


2. problem: i want a monster to spawn with his back facing a wall. in the level editor everything looks fine
but ingame the monster is looking at the wall.

how can i solve these problems?
11-16-2012, 03:43 PM
Find


Messages In This Thread
problem with monsters and sanity - by darksky - 11-16-2012, 03:43 PM
RE: problem with monsters and sanity - by Statyk - 11-16-2012, 05:03 PM
RE: problem with monsters and sanity - by darksky - 11-16-2012, 06:13 PM



Users browsing this thread: 1 Guest(s)