Hi, I have a very simple action for a PhysX door. When I apply it to a WMB object in WED I get an error: "PhysX: Can't create joint!" (Malfunction W1527). This error occurs when pXcon_add is encountered. However, when I use ent_create("door.wmb",nullvector,door) to create the door by script, I do not get an error. Any reason for this discrepancy?

Code:
action door(){
	c_setminmax(me);
	set(me, SHADOW|LIGHT);
	
	pXent_settype(me,PH_RIGID,PH_BOX);
	
	// parent is door_hinge
	// exit function if no hinge
	if(my.parent == NULL){
		return;
	}
	else{
		you = my.parent;
	}
	
	pXcon_add(PH_HINGE, me, NULL, 1);
	
	pXcon_setparams1(me, you.x, vector(0,0,1), vector(10,10,0));
	pXcon_setparams2(me, vector(0,90,0), NULL, NULL);
}

action door_hinge(){
	c_setminmax(me);
	set(me, SHADOW|LIGHT);
	pXent_settype(me,PH_STATIC,PH_BOX);
}