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
Piano Scare-script
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Piano Scare-script

I'm not exactly sure what you mean "Piano scare" Im guessing it just makes a noise, so i would do this:


void OnStart()

{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "PianoScare" , true , 1);
}


void PianoScare(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Piano sound, use with quotations aswell", "Player", 0.5f, false);
}

10-20-2011, 12:17 PM
Find


Messages In This Thread
Piano Scare-script - by Wickedwrath - 10-19-2011, 07:30 AM
RE: Piano Scare-script - by Elven - 10-19-2011, 07:39 AM
RE: Piano Scare-script - by flamez3 - 10-20-2011, 12:17 PM
RE: Piano Scare-script - by Elven - 10-20-2011, 12:19 PM
RE: Piano Scare-script - by flamez3 - 10-20-2011, 12:23 PM
RE: Piano Scare-script - by Elven - 10-20-2011, 12:44 PM



Users browsing this thread: 1 Guest(s)