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?
ricky horror Offline
Member

Posts: 54
Threads: 8
Joined: Apr 2011
Reputation: 0
#10
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed?

void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("StartDoor2", false, true);
    PlaySoundAtEntity("", "unlock_door", "StartDoor2", 0, false);

this is actual scripting from the conversion i'm working on
works fine for me

make sure that the third thing typed in (the one next to "unlock_door") is the actual name of the door

other than that, i have no idea why it's not working :/

edit:

try:
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
    SetSwingDoorClosed("mansion_1", true, true);
    PlaySoundAtEntity("", "react_scare", "mansion_1", 0, false);
}

Amnesia: Ricky's Horror - Full Conversion
(This post was last modified: 05-05-2011, 09:25 AM by ricky horror.)
05-05-2011, 09:21 AM
Find


Messages In This Thread
RE: Cant have PlaySoundAtEntity with SetSwingDoorClosed? - by ricky horror - 05-05-2011, 09:21 AM



Users browsing this thread: 3 Guest(s)