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 Sound-Area doesn't work [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#1
Sound-Area doesn't work [Solved]

Hey guys, I added an area and an entity for example the grandfather clock.
I named the Area "ClockChime", the PlayerInteractCallback "Clock" and the Clock "grandfather". The Sound name is "ClockChime.snt".

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ClockChime", "Clock", true, 1);
}

void Clock(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Clock", "ClockChime.snt", "grandfather", 1, false);
}

When i'm colliding with this area ingame, nothing happens.. where is my mistake ?

ShipinShen - YouTube
(This post was last modified: 04-22-2014, 04:19 PM by ShipinShen.)
04-22-2014, 02:41 PM
Find


Messages In This Thread
Sound-Area doesn't work [Solved] - by ShipinShen - 04-22-2014, 02:41 PM
RE: Sound-Area doesn't work - by Mudbill - 04-22-2014, 02:51 PM
RE: Sound-Area doesn't work - by ShipinShen - 04-22-2014, 02:54 PM
RE: Sound-Area doesn't work - by Mudbill - 04-22-2014, 02:57 PM
RE: Sound-Area doesn't work - by ShipinShen - 04-22-2014, 03:00 PM
RE: Sound-Area doesn't work - by Daemian - 04-22-2014, 03:33 PM
RE: Sound-Area doesn't work - by ShipinShen - 04-22-2014, 03:56 PM
RE: Sound-Area doesn't work [Solved] - by Mudbill - 04-22-2014, 05:59 PM



Users browsing this thread: 1 Guest(s)