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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant have PlaySoundAtEntity with SetSwingDoorClosed?
Ge15t Offline
Junior Member

Posts: 48
Threads: 8
Joined: Feb 2011
Reputation: 0
#1
Cant have PlaySoundAtEntity with SetSwingDoorClosed?

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "react_scare1.ogg", "Player", 0, false);
}

Ok so when I move through a locked door which I unlock with a key, it slams behind me, but does not play the sound file I have set above..

void UsedKey1OnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);

}


However a sound effect + entity effect works here.. why not with the other one?

I am getting no errors or anything from starting the custom story, the sound refuses to play. I even tried setting the sound to come from something else like a vase or the door itself, but still no dice.
05-05-2011, 08:22 AM
Find


Messages In This Thread
Cant have PlaySoundAtEntity with SetSwingDoorClosed? - by Ge15t - 05-05-2011, 08:22 AM



Users browsing this thread: 1 Guest(s)