void ARTEMIS2::blowFairing() {
PROPELLANT_HANDLE ph_lhf_aux, ph_rhf_aux;
THRUSTER_HANDLE th_lhf_aux, th_rhf_aux;
VESSELSTATUS vs;
char name[256] = { "" };
// THRUSTER_HANDLE th_att_lin[16];
// OBJHANDLE h;
VESSEL* v;
(FAIRING_status = SEPARATE);
// ReloadMeshes();
CHANGESTATE();
GetStatus(vs);
vs.flag[0] = 3;
ofs = _V(0, 0, 0);
Local2Rel(ofs, vs.rpos);
sprintf_s(name, "%s-fair1", GetName());
Local2Rel(ofs, vs.rpos);
fair1h = oapiCreateVessel(name, "ARTEMIS_FAIR1", vs);
v = oapiGetVesselInterface(fair1h);
v->SetEmptyMass(200);
ph_lhf_aux = v->CreatePropellantResource(5, 5, 1.0);
th_lhf_aux = v->CreateThruster(_V(0, 0.0, 1.0), _V(0, -0.95, 0.1), 5000.0, ph_lhf_aux, 300.0, 0.0, 0);
v->SetThrusterLevel(th_lhf_aux, 1.0);
v->SetEnableFocus(false);
//******
GetStatus(vs);
vs.flag[0] = 3;
ofs = _V(0, 0, 0);
Local2Rel(ofs, vs.rpos);
sprintf_s(name, "%s-fair2", GetName());
Local2Rel(ofs, vs.rpos);
// vs.arot.z += PI;
fair2h = oapiCreateVessel(name, "ARTEMIS_FAIR2", vs);
v = oapiGetVesselInterface(fair2h);
v->SetEmptyMass(200);
ph_rhf_aux = v->CreatePropellantResource(5, 5, 1.0);
th_rhf_aux = v->CreateThruster(_V(0, 0.0, 1.0), _V(-0.87, 0.5, 0.1), 5000.0, ph_rhf_aux, 300.0, 0.0, 0);
v->SetThrusterLevel(th_rhf_aux, 1.0);
v->SetEnableFocus(false);
//******
GetStatus(vs);
vs.flag[0] = 3;
ofs = _V(0, 0, 0);
Local2Rel(ofs, vs.rpos);
sprintf_s(name, "%s-fair3", GetName());
Local2Rel(ofs, vs.rpos);
// vs.arot.z += PI;
fair3h = oapiCreateVessel(name, "ARTEMIS_FAIR3", vs);
v = oapiGetVesselInterface(fair3h);
v->SetEmptyMass(200);
ph_rhf_aux = v->CreatePropellantResource(5, 5, 1.0);
th_rhf_aux = v->CreateThruster(_V(0, 0.0, 1.0), _V(0.87, 0.5, 0.1), 5000.0, ph_rhf_aux, 300.0, 0.0, 0);
v->SetThrusterLevel(th_rhf_aux, 1.0);
v->SetEnableFocus(false);
}