Taro Tripwire
I would like to present my tripwire mod. Using ACE interact and ACE explosives I was able to create tripwires that lets you attach any grenade, from your inventory, to it. It can use any modded grenade. It also displays the attached grenade model as well.
In addition to the tripwire "mines" I have also included a misc item that is a Tripwire Spool, that lets you cut an infinite number of tripwire from it, just in case you plan to do some extra shenanigans. You use a CBA inventory interaction on the Tripwire Spool, double clicking on the item and then double clicking on the action.
Tripwires can now be placed in the editor, they are in the weapons > explosives category. I also added a new function that lets mission maker to add grenades to editor placed tripwires, use this code inethe tripwire’s init field:
The first is the reference to the tripwire object, the sencond is the magazine classname of the grenade you want to attach to the tripwire
– The actual Tripwire "mines’ are in "Magazines" section of the arsenal.
– Tripwire Spool in in the "Misc" section of the arsenal.
Known Issues:
– The Tripwrie mines are in the Magazines section of the Arsenal, NOT explosives, can’t get them to show up in the explosives tab for some reason
– Some scripted grenades do not work properly, like flashbangs, also from RHS the RGO and RGN grenades do not work as they use RHS custom setup
– Due to how arma 3 handles grenades, attaching the grenade to a tripwire will now switch you to that grenade. It’s a workaround for an issue where you was unable to actually select the grenade at all.
BI Forum topic: https://forums.bohemia.net/forums/topic/243608-taro-tripwire/
Changelog:
V6 – current version
– found and fixed duplication bug and other assoted bugs, hopefully it will work properly now
V5
– big fixes to the ammo removal part so it actually works propely now (I hope)
– fixed duplication glitch on difusal
– added 1.5m version of the tripwire
– added tripwires as placable mines in the editor
– added a new function that lets mission maker to add grenades to editor placed tripwires, use this code inethe tripwire’s init field:
The first is the reference to the tripwire object, the sencond is the magazine classname of the grenade you want to attach to the tripwire
V4
– Fixed grenade defusing giving back multipe extra grenades
V3
– Fixed defusing. Defusing tripwire should now return the grenade, it should even keep the correct projectile count in the magazine. Shoutout to silent1 for letting me know about the CBA event handler
– Fixed projectile count. Now the number of spawned grenades should be correctly carried over from non-full grenade magazines used to arm the tripwire. ie. using a magazine with 2 remaining V40 grenades from SOG will now spawn 2 grenades on trip and return a magazine with 2 remaining grenades
V2
– fixed grenades being removed from a selection, a kind of hack of a workaround but it works better now (shoutout to the selecable grenade wheel mod)
– fixed 2m tripwire not giving the tripwire back and throwing error
– fixed attached grenades not pointing the same direction as the tripwire
V1 – initial release