shmuckdom
Junior Member
Posts: 8
Joined: Mar 2011
Reputation: 0
|
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 |
|
flamez3
Posting Freak
Posts: 1,320
Joined: Apr 2011
Reputation: 57
|
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 |
|
Acies
Posting Freak
Posts: 1,279
Joined: Feb 2011
Reputation: 54
|
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]](http://i.imgur.com/mZiYnxe.png) ジ
|
|
| 11-26-2011 11:28 AM |
|
Your Computer
SCAN ME!
Posts: 3,236
Joined: Jul 2011
Reputation: 216
|
RE: How to make player not lose sanity
For regular custom stories, you have to constantly set the players sanity using the SetPlayerSanity function.
|
|
| 11-26-2011 04:06 PM |
|
GreyFox
Member
Posts: 162
Joined: Jul 2011
Reputation: 2
|
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 |
|
Tanshaydar
From Beyond
Posts: 3,091
Joined: Mar 2009
Reputation: 66
|
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 |
|