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
How to input sound?
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: How to input sound?

Well, tell me if this works

void OnStart()
{
    AddTimer("startlv",5,"EntryRoom");
    PlayMusic("10_amb.ogg", true, 80, 1, 0, false);
    AddUseItemCallback("", "Key_Marnica_01", "castle_3", "UsedKeyOnDoor", true);
    SetEntityPlayerInteractCallback("human_skull_1", "OnPickup", true);
}

void Function(string &in entity)
{
    PlaySoundAtEntity("scare_walk_ghost", "scare_walk_ghost.snt", "human_skull_1", 0, false);
}
void PickLetter(string &in entity)
{
    PlayMusic("Letter_01", false, 0.7f, 0, 10, false);
}

void EntryRoom(string &in asTimer)
{
    SetMessage("Inventory","LucasMysteryEnterRoom",0);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("castle_3", false, true);
    PlaySoundAtEntity("", "unlock_door", "castle_3", 0, false);
    RemoveItem("Key_Marnica_01");
}

06-28-2011, 07:09 PM
Website Find


Messages In This Thread
How to input sound? - by fuytko - 06-28-2011, 06:17 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 06:34 PM
RE: How to input sound? - by fuytko - 06-28-2011, 06:53 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 06:55 PM
RE: How to input sound? - by fuytko - 06-28-2011, 07:03 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 07:09 PM
RE: How to input sound? - by fuytko - 06-28-2011, 07:26 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 07:32 PM
RE: How to input sound? - by fuytko - 06-28-2011, 07:37 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 07:41 PM
RE: How to input sound? - by xtron - 06-28-2011, 07:41 PM
RE: How to input sound? - by Tanshaydar - 06-28-2011, 07:43 PM
RE: How to input sound? - by xtron - 06-28-2011, 07:52 PM
RE: How to input sound? - by fuytko - 06-28-2011, 07:57 PM



Users browsing this thread: 1 Guest(s)