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
** SOLVED ** No sound when unlocking door?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#1
Wink  ** SOLVED ** No sound when unlocking door?

Hello. Everything inside my first map is working perfectly, apart from the sound that is supposed to play when I insert a key into a swing door. The door does unlock, but no sound is heard.

HPS File:

void OnStart()
{
AddUseItemCallback("", "Key1", "masion_Door", "DoorUnlockKey", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void DoorUnlockKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("masion_Door", false, true);
PlaySoundAtEntity("unlock.door.snt", "unlock_door", "masion_Door", 150, false);
RemoveItem("Key1");

}
(This post was last modified: 05-01-2013, 06:32 PM by FurtherGames.)
05-01-2013, 05:53 PM
Find


Messages In This Thread
** SOLVED ** No sound when unlocking door? - by FurtherGames - 05-01-2013, 05:53 PM



Users browsing this thread: 1 Guest(s)