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
Script Help How to make player not lose sanity
shmuckdom Offline
Junior Member

Posts: 8
Threads: 5
Joined: Mar 2011
Reputation: 0
#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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#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
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#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
Website Find




Users browsing this thread: 1 Guest(s)