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 do I get a Phonograph Working?
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#3
RE: How do I get a Phonograph Working?

Onstart()
{
SetEntityPlayerInteractCallback("phonograph_1", "PlaySong", true);
}


void PlaySong(string &in asEntity)
{
SetWheelStuckState("phonograph_1", 0, false);
PlaySoundAtEntity("", "12_make_drill.snt", asEntity, 0.0f,false);
SetEntityInteractionDisabled(asEntity, true);
AddTimer("PlayTimer", 4.0f , "PlayTimerX");
}


void PlayTimerX(string &in asTimer)
{
PlaySoundAtEntity("", "Alexandria_Song.snt", "phonograph_1", 0.5f, false);
}


[Image: mZiYnxe.png]


12-30-2011, 06:22 PM
Find


Messages In This Thread
How do I get a Phonograph Working? - by Statyk - 12-30-2011, 05:42 PM
RE: How do I get a Phonograph Working? - by Apjjm - 12-30-2011, 06:22 PM
RE: How do I get a Phonograph Working? - by Apjjm - 12-30-2011, 06:31 PM
RE: How do I get a Phonograph Working? - by Acies - 12-30-2011, 06:22 PM



Users browsing this thread: 1 Guest(s)