Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Piano Scare script
S4n1tyM0rs0 Offline
Junior Member

Posts: 14
Threads: 2
Joined: Feb 2012
Reputation: 0
#2
RE: Piano Scare script problem.

void OnStart()
{
AddTimer("pianotimer", 0, "pianotimer");
AddEntityCollideCallback("player", "pianostop", "pianostop", true, 1);
}

void pianotimer(string &in asTimer)
{
PlaySoundAtEntity("piano", "general_piano03", "piano", 0, false);
AddTimer("pianotimer", 18, "pianotimer");
}

void pianostop(string &in asParent, string &in asChild, int alState)
{
StopSound("piano", 0);
RemoveTimer("pianotimer");
SetLeverStuckState("piano", -1, true);
AddPropImpulse("piano", 0, 0, 100, "world");
PlaySoundAtEntity("piano", "break_wood", "piano", 0, false);
CreateParticleSystemAtEntity("", "ps_dust_impact.ps", "impact", false);
}
02-04-2012, 05:41 PM
Find


Messages In This Thread
Piano Scare script - by Bors - 02-04-2012, 05:29 PM
RE: Piano Scare script problem. - by S4n1tyM0rs0 - 02-04-2012, 05:41 PM
RE: Piano Scare script problem. - by Bors - 02-04-2012, 05:46 PM
RE: Piano Scare script - by Elven - 02-04-2012, 09:45 PM
RE: Piano Scare script - by Ninami - 02-04-2012, 09:52 PM
RE: Piano Scare script - by Elven - 02-04-2012, 10:03 PM
RE: Piano Scare script - by Ninami - 02-05-2012, 01:20 PM
RE: Piano Scare script - by Elven - 02-05-2012, 02:07 PM
RE: Piano Scare script - by Bors - 02-05-2012, 10:22 PM



Users browsing this thread: 1 Guest(s)