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
problems with sound script (solved)
Nice Offline
Posting Freak

Posts: 3,812
Threads: 37
Joined: Jan 2012
Reputation: 153
#5
RE: problems with sound script

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
}

////////////////////////////

// Run when entering map

void OnEnter()

{
AddUseItemCallback("mansion_1", "awesomekey_1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("02_puzzle.ogg", "unlock_door", "mansion_1", 1, false); RemoveItem("awesomekey_1");
}

void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1);
}

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amd_idle03.ogg", "Player", 0, false);
}


Sorry but we cannot change your avatar as the new avatar you specified is too big. The maximum dimensions are 80x80 (width x height)
05-20-2012, 09:52 PM
Find


Messages In This Thread
problems with sound script (solved) - by Nice - 05-20-2012, 09:27 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 09:37 PM
RE: problems with sound script - by Nice - 05-20-2012, 09:44 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 09:50 PM
RE: problems with sound script - by Nice - 05-20-2012, 09:52 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 10:03 PM
RE: problems with sound script - by Nice - 05-20-2012, 10:05 PM
RE: problems with sound script - by SilentStriker - 05-21-2012, 06:45 AM
RE: problems with sound script - by Adny - 05-20-2012, 10:23 PM



Users browsing this thread: 2 Guest(s)