Orion1234 30 Posted April 16, 2022 @Harzach thanks for that info, did not know that. What I had meant that in this context it will not work as the script Captinlarry is calling requires variables to be passed. Share this post Link to post Share on other sites
Harzach 2518 Posted April 16, 2022 11 minutes ago, Orion1234 said: What I had meant that in this context it will not work But it does work, for the reason I stated. The code I posted is the same init line (fixed), expanded vertically for clarity. The EH sends its params (_this) to flak.sqf, which then pulls the vehicle from it (_unit = _this select 0;). Of course, it would be cleaner to just send the EH's inherent param _unit directly, since that's all the script uses. Share this post Link to post Share on other sites
Orion1234 30 Posted April 16, 2022 @Harzach I got confused with my own scripts, flak refers to the original script. My bad, will change that in my post. Much appreciated for correcting me. Share this post Link to post Share on other sites
Captinlarry 0 Posted April 18, 2022 On 4/16/2022 at 1:03 PM, Harzach said: Sure it will, in a case such as this where it's "this" passed into the EH. this removeMagazinesTurret ["4Rnd_Titan_long_missiles", {0}]; this addEventHandler [ "Fired", { deleteVehicle (_this select 6); _this execVM "scripts\flak.sqf"; } ]; Alright then what am I doing wrong then? Share this post Link to post Share on other sites
Harzach 2518 Posted April 18, 2022 1 hour ago, Captinlarry said: Alright then what am I doing wrong then? Did you fix the error in your init line? Share this post Link to post Share on other sites
Captinlarry 0 Posted April 19, 2022 On 4/17/2022 at 11:06 PM, Harzach said: Did you fix the error in your init line? Yup. Still got the Error Share this post Link to post Share on other sites
Harzach 2518 Posted April 19, 2022 Works fine here. Share your mission so we can see what's going on. Share this post Link to post Share on other sites
Captinlarry 0 Posted April 20, 2022 20 hours ago, Harzach said: Works fine here. Share your mission so we can see what's going on. Having issues posting the PBO and the SQM here. Share this post Link to post Share on other sites
Harzach 2518 Posted April 20, 2022 2 hours ago, Captinlarry said: Having issues Use Dropbox/GDrive/similar. Share this post Link to post Share on other sites