Code:
var LF_DOOR_ID;
action lf_door
{
phent_settype(my,PH_RIGID,PH_POLY);
ph_setgravity(vector(0,0,-800));
phent_setgroup(my,2);
phent_setmass(my,50,PH_BOX);
phent_setfriction(my,15);
phent_setelasticity(my,5,5);
LF_DOOR_ID = phcon_add(PH_HINGE, *change to hinge*, my);
phcon_setparams1(LF_DOOR_ID, my.x, vector(0,0,1), vector(0,1,0));
phcon_setparams2(LF_DOOR_ID, vector(0,70,0), nullvector, vector(0,0,0));
}
ok, this is a real old code of mine, not sure if it still works.
you'll have to see for yourself, good luck!
regards,