AGP
Senior Member
Posts: 448
Threads: 45
Joined: Dec 2012
Reputation:
23
|
RE: Phonograph and Waxroll Record
Here's the whole file. It's probably painfully obvious I'm newbie to this.
Spoiler below!
void OnStart ()
{
AddUseItemCallback("", "workwingkey", "workwingdoor", "UsedKeyOnDoor1", true);
AddUseItemCallback("", "deadendkey", "deadenddoor", "UsedKeyOnDoor2", true);
AddUseItemCallback("", "swanlakerecord, "musicphono", "PlayMusic", true);
}
void OnEnter()
{
}
void OnLeave()
{
SetupLoadScreen("LoadingText", "LoadTextTwo", 1, "titlescreen.jpg");
}
void UsedKeyOnDoor1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("workwingdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "workwingdoor", 0, false);
RemoveItem("workwingkey");
}
void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("deadenddoor", false, true);
PlaySoundAtEntity("", "unlock_door", "deadenddoor", 0, false);
RemoveItem("deadendkey");
}
void PlayMusic (string &in asItem, string &in asEntity)
{
PlaySoundAtEntity ("", "swanlakephonograph.snt", "musicphono", 0, false);
Attempted to fix it up some more, but got nowhere. =/
|
|
12-24-2012, 04:16 AM |
|