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
Jump scare script problem
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#6
RE: Jump scare script problem

void OnStart()
{
SetEntityCallbackFunc("firstkey", "keyfunc");
}

void keyfunc(string &in asEntity, string &in type)
{
SetSwingDoorClosed("prison_1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
This should do the job.
I'm not sure if you can close the door with this function, tell me if it's not working.

[Image: 18694.png]
07-16-2012, 03:36 AM
Find


Messages In This Thread
Jump scare script problem - by liamthespy - 07-16-2012, 03:05 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:12 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:24 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:30 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:31 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:36 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:40 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:49 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 04:03 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 04:20 AM



Users browsing this thread: 1 Guest(s)