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
Script Help Hear sound at wrong area
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#1
Question  Hear sound at wrong area

I got a little problem i don't know how to solve

I use "PlaySoundAtEntity("", "door_level_cistern_open.snt", "Player", 0.0f, false);" script. But when the sound plays it plays like i am right at the door that opens. How do i change so i hear the sound like it's around a corner or like 10 meters away from me?

I googled and searched on youtube but none gave the answer i needed and i also tried to play around with the "Sounds" thing that is above static_objects in the editor but i don't understand it Sad


My script:
Quote:void chasegruntlook(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("chasegrunt", true);
AddTimer("", 2, "TimerGruntEnd");
StartPlayerLookAt("lookat", 10, 50, "");
AddTimer("", 2, "TimerStopPlayerLook");
AddEnemyPatrolNode("chasegrunt", "chasenode", 0, "");
PlaySoundAtEntity("", "door_level_cistern_open.snt", "Player", 0.0f, false);
}
05-13-2014, 06:31 PM
Find


Messages In This Thread
Hear sound at wrong area - by Rowzter - 05-13-2014, 06:31 PM
RE: Hear sound at wrong area - by Wapez - 05-13-2014, 06:38 PM
RE: Hear sound at wrong area - by Rowzter - 05-13-2014, 06:40 PM



Users browsing this thread: 1 Guest(s)