Nailpolish 10 Posted May 10, 2014 How do I set up an event handler or trigger to spawn a bomb on any player entering the area of a trigger or marker? Share this post Link to post Share on other sites
champ-1 40 Posted May 10, 2014 On trigger activation: { expl = "APERSMine_Range_Ammo" createVehicle getPos _x; expl setDamage 1; } forEach thisList; Share this post Link to post Share on other sites
Nailpolish 10 Posted May 10, 2014 That's neat and all but how do I accomplish the same with the bomb command?` and I know how to use foreach with arrays but how does it work with triggers? Please explain more in depth Share this post Link to post Share on other sites
champ-1 40 Posted May 10, 2014 (edited) With this command you creating explosive under every unit in tigger area and then destoing it. Instead of "APERSMine_Range_Ammo" place any ammo classname. You can find them here: https://community.bistudio.com/wiki/Arma_3_CfgMagazines "thisList" is a magic variable for triggers, contains array of all units inside trigger area. Edited May 10, 2014 by Champ-1 Share this post Link to post Share on other sites
ante185 2 Posted May 10, 2014 How could I do that but so it places ordinance module? Share this post Link to post Share on other sites
Nailpolish 10 Posted May 10, 2014 and if I want the trigger to only activate for ground vehicles (mraps and the like) and not aircraft, how can I do that? Share this post Link to post Share on other sites
champ-1 40 Posted May 10, 2014 (edited) There is this thing called isKindOf. It tests if unit is of given type. { if (vehicle _x isKindOf "LandVehicle") then { expl = "APERSMine_Range_Ammo" createVehicle getPos _x; expl setDamage 1; }; } forEach thisList; This will not kill infantry and air units. Edited May 10, 2014 by Champ-1 Share this post Link to post Share on other sites