DankanX37 29 Posted August 15, 2018 I want to create a mission where you can place mines only after you've completed a task, I know I can add the mines to the player inventory, but is there an EH that triggers when a mine is placed? I've seen in "Resist" campaign he placed dozens of triggers to check if there was a mine, but it won't work for me. Share this post Link to post Share on other sites
Harzach 2505 Posted August 15, 2018 I think the Fired EH will catch mine placement. Share this post Link to post Share on other sites
DankanX37 29 Posted August 15, 2018 I got it, I was using "_weapon" instead I had to use _ammo. Share this post Link to post Share on other sites
DankanX37 29 Posted August 15, 2018 mines = ["ATMine_Range_Ammo","APERSMine_Range_Ammo","APERSBoundingMine_Range_Ammo","SLAMDirectionalMine_Wire_Ammo","APERSTripMine_Wire_Ammo","ClaymoreDirectionalMine_Remote_Ammo","SatchelCharge_Remote_Ammo","DemoCharge_Remote_Ammo"]; player addEventHandler ["Fired", { params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; if (_ammo in mines) then { hint "Player placed a mine"; }; }]; 2 Share this post Link to post Share on other sites