Search the Community
Showing results for tags 'medical vehicle'.
Found 1 result
-
[SOLVED] Ace Medical Full Heal in Vehicle
Arquilius posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Good evening everyone, I was making a mission but i'm kinda stuck at some point of the code. Would really appreciate some help ^^. Idea of the code: - Create an addAction on a vehicle instantly healing the crew (or just the injured soldier inside the vehicle), - addAction should only be visible (or activated) by medics who should be inside the vehicle to activate (that last part works with a 2m radius for the addAction), - Code for a multiplayer mission. Current code (in the init of the vehicle, vehicle name : "healing_vec_2") : this addAction [ "Heal", { {[objNull, player] call ace_medical_treatment_fnc_fullHeal} forEach crew healing_vec_2; }, nil, 1.5, true, true, "", "true", 2, false, "", "" ]; Current issues: - I have absolutly no idea how to condition on being a medic in order to see the action, - (Only tested it on an IA inside the vehicle), apparently it only works on the player activating the action, the AI still had the legs injured. Any idea how i could rewrite this code to make it work? Thks for the help everyone!