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
Sanity hit when looking at area
Kyzer Offline
Junior Member

Posts: 17
Threads: 6
Joined: Sep 2015
Reputation: 0
#4
RE: Sanity hit when looking at area

(09-23-2015, 08:09 AM)Mugbill Wrote: The GiveSanityDamage is all that is required for the FOV, sound, and loss of sanity. Anyway, I answered your other thread. You should stick to one and not make duplicates.

For the sake of it, I'll just quote my reply here for now.

(09-23-2015, 08:03 AM)Mugbill Wrote: Ah, yes here it is:
PHP Code: (Select All)
SetEntityPlayerLookAtCallback(stringasNamestringasCallbackbool abRemoveWhenLookedAt); 

The callback syntax is void MyFunc(string &in asEntity, int alState)

If you're not familiar with scripting, this should look like so:

PHP Code: (Select All)
void OnStart()
{
    
SetEntityPlayerLookAtCallback("NAME_OF_AREA""NAME_OF_CALLBACK"true);
}

void NAME_OF_CALLBACK(string &in asEntityint alState)
{
    
GiveSanityDamage(15.0ftrue);


I'm getting the effect but I'm not getting the gasping sound. (using 50)
(This post was last modified: 09-25-2015, 02:15 AM by Kyzer.)
09-25-2015, 02:15 AM
Find


Messages In This Thread
Sanity hit when looking at area - by Kyzer - 09-23-2015, 02:35 AM
RE: Sanity hit when looking at area - by Mudbill - 09-23-2015, 08:09 AM
RE: Sanity hit when looking at area - by Kyzer - 09-25-2015, 02:15 AM
RE: Sanity hit when looking at area - by Mudbill - 09-25-2015, 07:31 AM



Users browsing this thread: 1 Guest(s)