tn_prvteye Posted March 19, 2018 Posted March 19, 2018 I'm trying to explode (not just remove) a dynamically spawned unit. Is this possible? I've got a script that will spawn a vehicle with MIST in a random zone, then send it to another random zone. I need it to explode at some point along the way. I can't use the ME 'explode' option since the Unit isn't created until after mission start. Any ideas?
Grimes Posted March 19, 2018 Posted March 19, 2018 If you know the name of the unit, or know roughly where it is you can use trigger.action.explosion. For example. local pos = Unit.getByName('whatever'):getPoint() trigger.action.explosion(pos, 500) The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
tn_prvteye Posted March 19, 2018 Author Posted March 19, 2018 I tried that, but couldn't get it to work. I'm using MIST and I tried the Unit Name I assigned it, but no kaboom. I think I found another way to achieve what I'm looking for, though. Thanks for the quick response...I'll keep fiddling with it.
SUNTSAG Posted March 19, 2018 Posted March 19, 2018 Two options spring to mind: 1. Explosion in zone Option. 2. Plant Land mines from the statics listings. Obviously both option would require the unit to pass over them or through the zone. Hope this helps. Cheers. Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
tn_prvteye Posted March 19, 2018 Author Posted March 19, 2018 Holy crap, we have LANDMINES!?!?! I never knew! :O
Recommended Posts