I'm trying to create a closed and open door safe box?system.
I would like to be able to create a safe box anywhere and automatically have the door positioned correctly.
Does anyone know the correct calculation for this?
The function I intend to use:
I would like to be able to create a safe box anywhere and automatically have the door positioned correctly.
Does anyone know the correct calculation for this?
PHP Code:
new safe =?CreateDynamicObject(19618, 414.47070, 2537.35913, 9.45900,? 0.00000, 0.00000, 90.00000);
new door =?CreateDynamicObject(19619, 414.70401, 2536.93848, 9.45800,? 0.00000, 0.00000, 90.00000);
The function I intend to use:
PHP Code:
stock CreateSafeBox(Float:px,Float:py,Float:pz,Float:rz)
{
CreateDynamicObject(px, py, pz? 0.0, 0.0, rz);//Safe
CreateDynamicObject(px, py, pz? 0.0, 0.0, rz);//Door
return 1;
}