The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Scare Event Help
ArcherKiller Offline
Junior Member

Posts: 6
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
Scare Event Help

Hello guys. I'm new to this forum and new to scripting. Can anyone help me with my script?

So here is idea. When Player picks up the lantern an event occurs: the scratch sound is played on door and Player forced to look at this door for 2 seconds. Scared breath is activated on Player.

Here how I tried to script it. I now there is huge mistake, but could you explain my mistake and maybe tell me how it is should be done?


void DoorScratch1(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "scare_scratch_intense", "private_room", 0, false);
StartPlayerLookAt("private_room", -1, 1, "SetLanternActive");
PlaySoundAtEntity("", "react_breath", "Player", 0, false);
StopPlayerLookAt();
}
03-09-2012, 09:31 AM
Find


Messages In This Thread
Scare Event Help - by ArcherKiller - 03-09-2012, 09:31 AM
RE: Scare Event Help - by Shives - 03-09-2012, 03:57 PM
RE: Scare Event Help - by Stepper321 - 03-09-2012, 04:02 PM
RE: Scare Event Help - by ArcherKiller - 03-09-2012, 05:28 PM
RE: Scare Event Help - by Datguy5 - 03-09-2012, 10:40 PM
RE: Scare Event Help - by ArcherKiller - 03-09-2012, 11:49 PM
RE: Scare Event Help - by Datguy5 - 03-10-2012, 10:08 AM
RE: Scare Event Help - by Asphex - 03-10-2012, 01:56 PM
RE: Scare Event Help - by ArcherKiller - 03-10-2012, 03:35 PM
RE: Scare Event Help - by Nevicar - 03-10-2012, 04:47 PM
RE: Scare Event Help - by JMFStorm - 03-10-2012, 05:09 PM
RE: Scare Event Help - by Stepper321 - 03-10-2012, 05:12 PM
RE: Scare Event Help - by ArcherKiller - 03-10-2012, 07:37 PM
RE: Scare Event Help - by ArcherKiller - 03-11-2012, 08:31 AM



Users browsing this thread: 2 Guest(s)