Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to make player not lose sanity
Author Message
shmuckdom Offline
Junior Member

Posts: 8
Joined: Mar 2011
Reputation: 0
Post: #1
Exclamation How to make player not lose sanity
So I have 2 enemies walking up beside the player that don't attack as my first scene but the sanity effect ruins it, I want to make the player not lose sanity but I can't find a script command that's working for me, PLEASE HELP!\

URGENT

-DoM
(This post was last modified: 11-26-2011 09:54 AM by shmuckdom.)
11-26-2011 09:54 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #2
RE: How to make player not lose sanity
I dont know but it might have something to do with the model. Open the enemy in model editor and check what the properties of it.

11-26-2011 10:02 AM
Find all posts by this user Quote this message in a reply
Acies Offline
Posting Freak

Posts: 1,279
Joined: Feb 2011
Reputation: 54
Post: #3
RE: How to make player not lose sanity
void SetSanityDrainDisabled(bool abX);
Enables/Disables sanity drain from darkness, monsters, etc.


I hope it works.

[Image: mZiYnxe.png]


11-26-2011 11:28 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #4
RE: How to make player not lose sanity
For regular custom stories, you have to constantly set the players sanity using the SetPlayerSanity function.

Tutorials: From Noob to Pro
11-26-2011 04:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #5
RE: How to make player not lose sanity
Don't know if this works, but I noticed in the model editor you can set things to NPC's, and I know alexander and Agriop or whatever his name is are both NPC's. so Switch them to NPC's and maybe that'll work? I don't know if they will move since Alexander and Agriop don't move. worth the try, Just save it as "Enemy_name_NPC"

Hope it works
-Grey Fox

Current Project
Forgotten
11-26-2011 11:55 PM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #6
RE: How to make player not lose sanity
Enemies need to be saved in Enemy_Grunt type, otherwise they won't act like enemies.

11-26-2011 11:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)