lwoadam 0 Posted January 2, 2023 Hello - Trying to make this work so that when I set a Satchel Charge down on two locations (parked planes on airfield) that they satisfy a third trigger which completes a task. I have found some resources and none work so far. I have three triggers (trig1, trig2, trig3) trig1 and trig2 has the following condition !isNull nearestObject [thisTrigger, "SatchelCharge_Remote_Ammo"] I have tried the following for trig3 which is synced to the SetTaskState ((triggerActivated trig1) && (triggerActivated trig2)) but it is not working, and the task is being completed when I set down the charge on one trigger. Any ideas? Share this post Link to post Share on other sites
Harzach 2517 Posted January 2, 2023 Working fine here. What you describe is what would happen if the first satchel is placed in a position that is within 50 meters of both trigger centers. nearestObject uses a predefined search radius of 50 meters. Maybe try nearestObjects instead (using a 10 meter radius in this example): count nearestObjects [thisTrigger, ["SatchelCharge_Remote_Ammo"], 10] > 0 Share this post Link to post Share on other sites
lwoadam 0 Posted January 2, 2023 25 minutes ago, Harzach said: Working fine here. What you describe is what would happen if the first satchel is placed in a position that is within 50 meters of both trigger centers. nearestObject uses a predefined search radius of 50 meters. Maybe try nearestObjects instead (using a 10 meter radius in this example): count nearestObjects [thisTrigger, ["SatchelCharge_Remote_Ammo"], 10] > 0 Yep!! This absolutely worked. Thank you Kindly!! Share this post Link to post Share on other sites
Harzach 2517 Posted January 2, 2023 19 minutes ago, lwoadam said: This absolutely worked. You really only need one trigger. Name the planes, and use a compound condition in your "third" trigger: count nearestObjects [plane1, ["SatchelCharge_Remote_Ammo"], 10] > 0 && count nearestObjects [plane2, ["SatchelCharge_Remote_Ammo"], 10] > 0 There is likely a more elegant way to do that as well, but I'm dumb. 1 Share this post Link to post Share on other sites
lwoadam 0 Posted January 2, 2023 19 minutes ago, Harzach said: You really only need one trigger. Name the planes, and use a compound condition in your "third" trigger: count nearestObjects [plane1, ["SatchelCharge_Remote_Ammo"], 10] > 0 && count nearestObjects [plane2, ["SatchelCharge_Remote_Ammo"], 10] > 0 There is likely a more elegant way to do that as well, but I'm dumb. This worked even better! Share this post Link to post Share on other sites
Joe98 92 Posted January 2, 2023 Anyhow, to solve a similair issue I solved it as follows: I place 2 boxes out of the way somewhere and name them box1 and box2 When trig1 fired it deletes box1 When trig2 fires it deletes box2 If both box1 and box2 are deleted, this causes trig3 to fire . . Share this post Link to post Share on other sites
pierremgi 4887 Posted January 3, 2023 Little bit quicker: just one module (similar to Harzach condition): nearestMines [plane1,["SatchelCharge_Remote_Ammo"],10] isNotEqualTo [] && nearestMines [plane2,["SatchelCharge_Remote_Ammo"],10] isNotEqualTo [] 1 Share this post Link to post Share on other sites