gruukh 13 Posted March 26, 2013 (edited) I'm trying to work out how to get a trigger to detect if one or more explosive charges are placed within it. The charges only need to be placed - they will be detonated later in the mission. Does anybody have any idea how I might accomplish this? I'm using the Explosive Charge. EDIT: I've looked into using eventhandlers instead. I have this in the init line of a vehicle: this addEventHandler ["FiredNear", {_this execVM "charge1.sqf"}] and this is the contents of charge1.sqf: //this addEventHandler ["firednear",{_this execvm "satchel.sqf"}] _unitfirednear = _this select 0; _ammo = _this select 4; _valid = ["DemoCharge_Remote_Mag"]; if (!(_ammo in _valid)) then { hint "1 charge placed"; }; } This works insofar as it displays the hint. However, i want to limit the distance to 2m between firer and target. I tried adding: _distance = _this select 2; and also updating the hint condition to read: if (!(_ammo in _valid)) AND (!(_distance == 2)) then { hint "1 charge placed"; }; but all that did was break the script...anybody with more scripting talent than me able to help? Edited March 26, 2013 by gruukh 1 Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted February 24, 2018 6 minutes ago, theopolus said: bump... This has to be the most impressive necro on this forum that I've ever seen... 5 years... Cheers 1 1 Share this post Link to post Share on other sites
theopolus 68 Posted February 24, 2018 Ya ... Thanks and sorry, my apologies. Share this post Link to post Share on other sites
pierremgi 4739 Posted February 25, 2018 just written charge in search field of this forum: 1 Share this post Link to post Share on other sites