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
Event Sound - Trigger Area Script [HELP !]
Plazmater Offline
Member

Posts: 122
Threads: 24
Joined: Aug 2013
Reputation: 1
#1
Event Sound - Trigger Area Script [HELP !]

Well, all i want to do is activate little scary event sound (2-4 sec long) by passing through Area.

But my script for it doesn´t work , i hoped that it would work but no.

Here is my script:

void OnStart()
{
AddEntityCollideCallback("Player", "SoundTrigger1", "SoundCollide", true, 1);
}

void SoundCollide(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound)
{
PlaySoundAtEntity("Whisper1", "afx_spooky_stereo_whisper1", "Player", 1.0, false);
}
10-13-2013, 08:30 PM
Find


Messages In This Thread
Event Sound - Trigger Area Script [HELP !] - by Plazmater - 10-13-2013, 08:30 PM



Users browsing this thread: 1 Guest(s)