Frictional Games Forum (read-only)
[SCRIPT] How to make player not lose sanity - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] How to make player not lose sanity (/thread-11511.html)



How to make player not lose sanity - shmuckdom - 11-26-2011

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



RE: How to make player not lose sanity - flamez3 - 11-26-2011

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.


RE: How to make player not lose sanity - Acies - 11-26-2011

void SetSanityDrainDisabled(bool abX);
Enables/Disables sanity drain from darkness, monsters, etc.


I hope it works.



RE: How to make player not lose sanity - Your Computer - 11-26-2011

For regular custom stories, you have to constantly set the players sanity using the SetPlayerSanity function.


RE: How to make player not lose sanity - GreyFox - 11-26-2011

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



RE: How to make player not lose sanity - Tanshaydar - 11-26-2011

Enemies need to be saved in Enemy_Grunt type, otherwise they won't act like enemies.