Ge15t
Junior Member
Posts: 48
Threads: 8
Joined: Feb 2011
Reputation:
0
|
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 |
|