thy_ 137 Posted April 17 Hi there. If you want to create missions without ACE dependencies but still want to use ACE Medical and Food stuff when ACE is available on the server, you might use this code in your initServer.sqf, for example. initServer.sqf // If ACE Medical is activated on the server, do it: if ( isClass(configfile >> "CfgPatches" >> "ace_medical") ) then { supply_crate1 = createVehicle ["CargoNet_01_box_F", [1876.54,9278.19,200], [], 0, "NONE"]; chute1 = createVehicle ["B_Parachute_02_F", [0,0,0], [], 0, "FLY"]; chute1 setPos (getPos supply_crate1); // getPos was designed to take the altitude pos obj from the surface below it. supply_crate1 attachTo [chute1, [0,0,-0.6]]; // attach the chute to the crate // Supply items > Medical: supply_crate1 addItemCargo ["ACE_fieldDressing", 36]; supply_crate1 addItemCargo ["ACE_elasticBandage", 18]; supply_crate1 addItemCargo ["ACE_splint", 9]; supply_crate1 addItemCargo ["ACE_quikclot", 18]; supply_crate1 addItemCargo ["ACE_tourniquet", 18]; supply_crate1 addItemCargo ["ACE_packingBandage", 9]; supply_crate1 addItemCargo ["ACE_bloodIV", 9]; supply_crate1 addItemCargo ["ACE_plasmaIV_500", 5]; supply_crate1 addItemCargo ["ACE_salineIV", 5]; supply_crate1 addItemCargo ["ACE_bodyBag", 5]; supply_crate1 addItemCargo ["ACE_morphine", 18]; supply_crate1 addItemCargo ["ACE_epinephrine", 18]; supply_crate1 addItemCargo ["ACE_adenosine", 18]; supply_crate1 addItemCargo ["ACE_painkillers", 18]; supply_crate1 addItemCargo ["ACE_surgicalKit", 3]; supply_crate1 addItemCargo ["ACE_suture", 3]; supply_crate1 addItemCargo ["ACE_personalAidKit", 3]; supply_crate1 addItemCargo ["Medikit", 1]; // Supply items > Food: supply_crate1 addItemCargo ["ACE_Banana", 18]; supply_crate1 addItemCargo ["ACE_MRE_SteakVegetables", 9]; // Supply items > Water: supply_crate1 addItemCargo ["ACE_WaterBottle", 18]; supply_crate1 addItemCargo ["ACE_Canteen", 9]; // Supply items > Extra: supply_crate1 addItemCargo ["ACE_EarPlugs", 9]; // Waiting the crate get closer to the ground: waitUntil { sleep 0.1; ((getPosATL supply_crate1) # 2) < 2 || !alive supply_crate1 }; // Adjust to crate velocity after the parachute detachment: _velocity = velocity supply_crate1; // [x,y,z] detach supply_crate1; supply_crate1 setVelocity _velocity; // Detachment of parachute from the crate: playSound3D ["a3\sounds_f\weapons\Flare_Gun\flaregun_1_shoot.wss", supply_crate1]; detach chute1; chute1 disableCollisionWith supply_crate1; // Animation breather: sleep 5; // Delete the parachute: if ( !isNull chute1 ) then { deleteVehicle chute1 } }; Pay attention to this line down below. You should set the classname of the asset of your taste. You MUST replace "[XXX, YYY, 200]" for other X and Y positions on the map. supply_crate1 = createVehicle ["CargoNet_01_box_F", [1876.54,9278.19,200], [], 0, "NONE"]; Enjoy. Share this post Link to post Share on other sites
diazsh 0 Posted April 18 Thanks for sharing the code I impelmented it on my site. Share this post Link to post Share on other sites