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 Script - Errors
S4n1tyM0rs0 Offline
Junior Member

Posts: 14
Threads: 2
Joined: Feb 2012
Reputation: 0
#4
RE: Piano Script - Errors

This should work:

void OnStart()

{
AddEntityCollideCallback("Player", "roomevent", "room1", true, 1);
AddEntityCollideCallback("Player", "pianoevent", "pianoscare", true, 1);
}

void room1(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candle1", false, false);
SetLampLit("candle2", false, false);
SetLampLit("candle3", false, false);
SetSwingDoorClosed("doorslam2", true, true);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
}

void pianoscare(string &in asParent, string &in asChild, int alState)
{
SetLeverStuckState("piano", -1, true);
AddPropImpulse("piano", 0, 0, 100, "world");
PlaySoundAtEntity("piano", "break_wood", "piano", false);
CreateParticleSystem("", "ps_dust_impact.ps", "impact", false);
}


void OnLeave()

{

}
(This post was last modified: 02-04-2012, 06:04 PM by S4n1tyM0rs0.)
02-04-2012, 06:04 PM
Find


Messages In This Thread
Piano Script - Errors - by Loveridge - 02-04-2012, 04:06 PM
RE: Piano Script - Errors - by S4n1tyM0rs0 - 02-04-2012, 04:08 PM
RE: Piano Script - Errors - by Loveridge - 02-04-2012, 04:45 PM
RE: Piano Script - Errors - by S4n1tyM0rs0 - 02-04-2012, 06:04 PM
RE: Piano Script - Errors - by Loveridge - 02-04-2012, 06:17 PM
RE: Piano Script - Errors - by palistov - 02-04-2012, 06:21 PM
RE: Piano Script - Errors - by Loveridge - 02-04-2012, 06:27 PM



Users browsing this thread: 2 Guest(s)