05-01-2011, 11:22 PM
05-01-2011, 11:27 PM
(05-01-2011, 11:22 PM)X4anco Wrote: [ -> ]Hello N00B here
How do you make a door open ???
Code:
void OnStart()
{
AddEntityCollideCallback("Player", "scarestuff_area", "scarestuff", true, 1);
}
void scarestuff(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorClosed("scarydoor", false, false);
SetSwingDoorDisableAutoClose("scarydoor", true);
AddPropImpulse("scarydoor", [b]5.0, 0, 0[/b], "World");
}
Excerpt of a code I use, it works for me but you may need to tweak the bold part with your own coordinates.