The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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?
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
How do I get a Phonograph Working?

As simply put as the title, I am trying to get a phonograph to play a song, but it's not working... Don't shake your head that I have scripted it wrong... I haven't worked with a wheel/valve yet. =[

//____________________

void OnStart()
{
SetMultiSliderCallback("phonograph_1", "playsong"); //this was in the function wiki that sounded like what I needed

}



void playsong(string &in asEntity, int alState)
{
if(alState == 1)
{
PlaySoundAtEntity("", "phonosong.snt", "phonograph_1", 0, true);
}
if(alState == -1)
{

}
}
(This post was last modified: 12-30-2011, 07:10 PM by Statyk.)
12-30-2011, 05:42 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)