Hey I was wondering if it was possible to open one of the two cabinet doors by it self?
I have tried:
With rotateArea:
///////////////////////////////////////////////////////////////////////////////////////////////
void CabinetScare(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 2, "StopSound");
AddTimer("Cabinet", 0, "RotateArea")
PlaySoundAtEntity("creak", "joint_door_move_special.snt", "Cabinet", 1, false);
}
void RotateArea(string %in asTimer
{
if (GetLocalVarInt ("Check") == 0)
{
if (alState == 1)
{
SetMoveObjectState("Cabinet", 1);
I also have this lengthy video on such a topic should you find it helpful. Just remember to use the "Body" script instead of the "Prop" script, and include the body name after the entity name. Otherwise, it should be same.