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
Insanity Problem
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#1
Insanity Problem

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.

[Image: 555233.jpg]
11-07-2010, 05:11 PM
Find
Nemesis751 Offline
Junior Member

Posts: 7
Threads: 1
Joined: Sep 2010
Reputation: 0
#2
RE: Insanity Problem

(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
11-07-2010, 05:20 PM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#3
RE: Insanity Problem

and how i can change his sanity??? ^^ ill make dark maps and there are low lights and some shadows.

[Image: 555233.jpg]
11-07-2010, 05:22 PM
Find
Nemesis751 Offline
Junior Member

Posts: 7
Threads: 1
Joined: Sep 2010
Reputation: 0
#4
RE: Insanity Problem

(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.
(This post was last modified: 11-07-2010, 05:25 PM by Nemesis751.)
11-07-2010, 05:25 PM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#5
RE: Insanity Problem

yes i know a little bit about scripting Smile nice if you can give me a script Smile big thx

[Image: 555233.jpg]
11-07-2010, 05:28 PM
Find
Nemesis751 Offline
Junior Member

Posts: 7
Threads: 1
Joined: Sep 2010
Reputation: 0
#6
RE: Insanity Problem

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.
(This post was last modified: 11-07-2010, 05:55 PM by Nemesis751.)
11-07-2010, 05:49 PM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#7
RE: Insanity Problem

thx it help me Smile

[Image: 555233.jpg]
11-07-2010, 06:04 PM
Find
Nemesis751 Offline
Junior Member

Posts: 7
Threads: 1
Joined: Sep 2010
Reputation: 0
#8
RE: Insanity Problem

(11-07-2010, 06:04 PM)Everlone Wrote: thx it help me Smile

no problem my friend ^^
11-07-2010, 06:07 PM
Find




Users browsing this thread: 1 Guest(s)