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 HELP
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Phonograph and Waxroll HELP

void OnStart()
{
SetLocalVarInt("PhonographWax", 0);
AddUseItemCallback("", "WaxRoll", "Phonograph", "EnablePhono", true);
SetMultiSliderCallback("Phonograph", "PlayMusic");
}

void EnablePhono(string &in asItem, string &in asEntity)
{
AddLocalVarInt("PhonographWax", 1);
}

void PlayMusic(string &in asEntity, int alState)
{
if(GetLocalVarInt("PhonographWax") == 1)
{
PlaySoundAtEntity("", "sound.snt", "Phonograph", 0.1f, false);
}

else
{
}
}

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 07-12-2013, 05:06 AM by PutraenusAlivius.)
07-12-2013, 05:06 AM
Find


Messages In This Thread
Phonograph and Waxroll HELP - by iLucian - 07-10-2013, 01:07 AM
RE: Phonograph and Waxroll HELP - by Daemian - 07-10-2013, 05:21 AM
RE: Phonograph and Waxroll HELP - by PutraenusAlivius - 07-12-2013, 05:06 AM



Users browsing this thread: 1 Guest(s)