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.)
|