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
#8
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed?

(05-05-2011, 08:58 AM)cook Wrote: void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
PlayGuiSound("react_scare", 1.0f);
}

This is what I do, works all the time, so no idea.

I copied/pasted that directly replacing my current one and doesnt work.

I even created a SECOND area that sits with the first area:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key1", "mansion_1", "UsedKey1OnDoor", true);
PlayMusic("04_amb.ogg", true, .5, 3, 0, true);
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "RoomTwoArea2", "CollideRoomTwo2", true, 1);

}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{

SetSwingDoorClosed("mansion_1", true, true);
PlayGuiSound("react_scare", 1.0f);

}

void CollideRoomTwo2(string &in asParent, string &in asChild, int alState)
{

PlayGuiSound("react_scare", 1.0f);

}


And yet it still doesnt work.. im at a complete loss here lol
05-05-2011, 09:04 AM
Find


Messages In This Thread
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed? - by Ge15t - 05-05-2011, 09:04 AM



Users browsing this thread: 1 Guest(s)