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
Custom Sound Help
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Custom Sound Help

OnStart()
{
AddUseItemCallback("", "KEYNAME", "DOORNAME", "UnlockDoor_1", true);

}

void UnlockDoor_1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("DOORNAME", false, true);
PlaySoundAtEntity("", "unlock_door", "DOORNAME", 0.0f, false);

RemoveItem(asItem);
}

Trying is the first step to success.
11-16-2012, 11:03 PM
Find


Messages In This Thread
Custom Sound Help - by The Rock Worm - 11-15-2012, 12:37 AM
RE: Custom Sound Help - by FlawlessHappiness - 11-15-2012, 08:28 AM
RE: Custom Sound Help - by The Rock Worm - 11-16-2012, 10:15 PM
RE: Custom Sound Help - by FlawlessHappiness - 11-16-2012, 11:03 PM



Users browsing this thread: 1 Guest(s)