I am working on a water grenade script and I need to figure a way to add an event handler to a certain weapon or magazine. I have the grenades working great as a VEHICLE! The code runs when the grenade (as a Vehicle) will spawn. The grenade falls into the water and detonates after a timed delay. Works great and I intend to equip this on some patrol boats to allow ships to have a "hedgehog" style depth charge / grenade launcher countermeasure to combat those nasty divers that Feint is makingYes I said depth charges
The problem is that I need to do the same thing for a WEAPON. The weapon I'm modeling is the real-world "anti-scuba" grenade launcher that is apparently used by Russian forces protecting boat/submarine/pier assets. The only thing I can do with it as-is with an event handler is to make it a static weapon or a mounted weapon on a vehicle.
As far as I can tell, there is no way to add an eventhandler to a weapon/magazine/ammo type. Is there? Perhaps a way to trigger something on weapon INIT to assign an event handler to the unit that picked it up? If I don't add the event handler then the grenade launcher is going to be a scripted-only implementation. I would like to make it easy to add to weapon crates, etc. for more broad use.
Thoughts?
HOME
Yes I said depth charges
Reply With Quote
[FRL]Myke


