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
Phonograph and Waxroll Record
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Phonograph and Waxroll Record

Well then:

void OnStart()

{
SetEntityInteractionDisabled("musicphono", true);

AddUseItemCallback("", "swanlakerecord, "musicphono", "AllowInteract", true);

}

void AllowInteract (string &in asItem, string &in asEntity)
{
SetEntityInteractionDisabled("musicphono", false);
}



void PlayMusic (string &in asEntity, int alState)

{

SetWheelInteractionDisablesStuck(asEntity, false);



        SetWheelStuckState(asEntity, alState, false);



    



        SetEntityInteractionDisabled("swanlakerecord", false);



    



        PlaySoundAtEntity("PlayMusic", "swanlakephonograph.snt", "musicphono", 0, false);



    



        AddDebugMessage("State changed to: "+alState, false);

}

Merry christmas!

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-24-2012, 08:51 PM
Find


Messages In This Thread
Phonograph and Waxroll Record - by AGP - 12-24-2012, 02:16 AM
RE: Phonograph and Waxroll Record - by Rapture - 12-24-2012, 03:09 AM
RE: Phonograph and Waxroll Record - by AGP - 12-24-2012, 04:16 AM
RE: Phonograph and Waxroll Record - by The chaser - 12-24-2012, 11:36 AM
RE: Phonograph and Waxroll Record - by AGP - 12-24-2012, 08:30 PM
RE: Phonograph and Waxroll Record - by The chaser - 12-24-2012, 08:51 PM
RE: Phonograph and Waxroll Record - by AGP - 12-24-2012, 11:49 PM
RE: Phonograph and Waxroll Record - by The chaser - 12-25-2012, 12:58 AM
RE: Phonograph and Waxroll Record - by AGP - 12-25-2012, 03:56 AM
RE: Phonograph and Waxroll Record - by AGP - 12-26-2012, 09:29 AM
RE: Phonograph and Waxroll Record - by The chaser - 12-26-2012, 11:09 AM
RE: Phonograph and Waxroll Record - by AGP - 12-26-2012, 06:36 PM
RE: Phonograph and Waxroll Record - by The chaser - 12-26-2012, 06:45 PM
RE: Phonograph and Waxroll Record - by AGP - 12-26-2012, 06:53 PM
RE: Phonograph and Waxroll Record - by The chaser - 12-26-2012, 07:31 PM
RE: Phonograph and Waxroll Record - by AGP - 12-27-2012, 02:32 AM
RE: Phonograph and Waxroll Record - by The chaser - 12-29-2012, 04:21 PM
RE: Phonograph and Waxroll Record - by AGP - 12-29-2012, 06:40 PM
RE: Phonograph and Waxroll Record - by The chaser - 12-29-2012, 06:51 PM
RE: Phonograph and Waxroll Record - by AGP - 12-29-2012, 07:48 PM



Users browsing this thread: 1 Guest(s)