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
Bors Offline
Junior Member

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

(02-04-2012, 05:41 PM)S4n1tyM0rs0 Wrote: 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);
}
yes you have right i think, i did test but it still didnt work :/

thanks for the help tho.


02-04-2012, 05:46 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)