RealCombat 10 Posted March 19, 2021 I'm trying to create a MedEvac vic that would heal anyone entering it's cargo for a multiplayer scenario. I planned on looking into Event Handlers to achieve that. As far as my dumb a$$ understands wiki, puting this in the init field of the vic should be enough this addEventHandler ["GetIn", {_cargo call ace_medical_treatment_fnc_fullHealLocal}]; But it's obviously is not since I'm posting. Could anyone point me as to where I made a mistake? Share this post Link to post Share on other sites
pierremgi 4740 Posted March 19, 2021 _cargo is not defined. For any EH, always check the available parameters for the inner code. https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetIn Not mandatory to use them all, but the index is. You can also use your own local variable name. Here: this addEventHandler ["GetIn", { params ["", "_role", "_wounded"]; if (_role == "cargo") then {_wounded call ace_medical_treatment_fnc_fullHealLocal}; }]; 1 Share this post Link to post Share on other sites
RealCombat 10 Posted March 20, 2021 Ahhh so that's how it works 😄 I just wrongly assumed EH would do it for me 🤦♂️ Thank You for the explanation Share this post Link to post Share on other sites