Frictional Games Forum (read-only)

Full Version: Insanity Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a problem with the insanity in the editor. I make a Area but if i go with the player in this area there will not happening. i have no idea why it doesnt work.

Thx for help.
(11-07-2010, 05:11 PM)Everlone Wrote: [ -> ]I have a problem with the insanity in the editor. I make a Area but if i go with the player in this area there will not happening. i have no idea why it doesnt work.

Thx for help.

This area will only trigger if your charater has a certain amount of sanity left i think its 50 anyway happy map making Smile
and how i can change his sanity??? ^^ ill make dark maps and there are low lights and some shadows.
(11-07-2010, 05:22 PM)Everlone Wrote: [ -> ]and how i can change his sanity??? ^^ ill make dark maps and there are low lights and some shadows.

thats one way too do it but it slowly drains, if u want and you know how scripting works i can give you a trigger to make your charater loose a certain amount of sanity.
yes i know a little bit about scripting Smile nice if you can give me a script Smile big thx
void OnStart()
{
SetEntityPlayerLookAtCallback("slime_egg_3", "PlayerLookAt", true);
)

void PlayerLookAt(string &in entity, int alState)
{
GiveSanityDamage(40.0f, true);
}


Where it says slime egg 3 you can put whatever entity you want, same with "PlayerLookAt".

So what happens here is the player looks at the slime egg and will loose 40 sanity out of 100 then you insanity areas will kick in Smile hope i helped.

one more thing you can change the 40 to whatever number you like.
thx it help me Smile
(11-07-2010, 06:04 PM)Everlone Wrote: [ -> ]thx it help me Smile

no problem my friend ^^