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
-Eyeroll- More Scripting problems!(FIXED!)
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#4
RE: -Eyeroll- More Scripting problems!

Either you can send me over your map and script and I can do it for you, or I can just explain it to you if you'd rather not. o: I have a working 'Danielpush' in one of my maps.
Here's my script just for the heck of it:
void OnStart()
{
AddEntityCollideCallback("Player", "push", "FlyingDaniel", true, 1);
AddEntityCollideCallback("Player", "door_scare", "Slam", true, 1);
}
void FlyingDaniel(string &in asParent, string &in asChild, int alState)
{
StopMusic(0, 0);
PlaySoundAtEntity("", "react_pant.snt", "push", 0, false);
AddPlayerBodyForce(30000, 0, 0, false);
}
void Slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_1", true, true);
SetSwingDoorLocked("cellar_1", true, true);
PlaySoundAtEntity("", "00_laugh.snt", "door_scare", 0, false);
}
void OnEnter()
{
}
void OnLeave()
{
}

Ba-da bing, ba-da boom.
(This post was last modified: 09-08-2011, 02:10 AM by JenniferOrange.)
09-08-2011, 02:08 AM
Find


Messages In This Thread
RE: -Eyeroll- More Scripting problems! - by JenniferOrange - 09-08-2011, 02:08 AM



Users browsing this thread: 1 Guest(s)