Frictional Games Forum (read-only)

Full Version: opening door/other
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
void OnStart()
{
AddEntityCollideCallback("Player" , "room_1" , "script_1" , true , 0);
}

void script_1(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorClosed("closet_1", false, false);
SetSwingDoorDisableAutoClose("closet_1", true);
}

Why wont the closet door open when i step up to it?Ive been trying to do this for 2 days and I cant get it why?
You will need a push with addBodyForce or addBodyImpulse to open the door.
whats the script for the force?