Kreyne 1 Posted January 4, 2020 I would like to validate a mission when I destroy an object like a mining shovel. Share this post Link to post Share on other sites
Play3r 147 Posted January 4, 2020 Take a look at this list of youtube video's on how to make tasks https://www.youtube.com/results?search_query=creat+task+arma+3 maybe some one of them can help you 1 Share this post Link to post Share on other sites
pierremgi 4933 Posted January 4, 2020 5 hours ago, Kreyne said: I would like to validate a mission when I destroy an object like a mining shovel. Welcome on BI forums You can't destroy objects like mining shovel. 1 Share this post Link to post Share on other sites
johnnyboy 3799 Posted January 4, 2020 9 minutes ago, pierremgi said: Welcome on BI forums You can't destroy objects like mining shovel. But you can place a small destructible object near the mining shovel, and base your trigger off that . I'm assuming you are having player place explosives near the mining shovel. You can even place a hidden AI, hide him (hideObjectGlobal true), and set him to have no voice (so you don't have a talking shoel!), and attach him to the shovel so he can't move. Now an explosion near that unit would kill this ai, and you could detect that and use it for your trigger condition. 5 Share this post Link to post Share on other sites
Kreyne 1 Posted January 5, 2020 @johnnyboy it's an alternative idea, thank you! 1 Share this post Link to post Share on other sites
stburr91 1011 Posted January 5, 2020 On 1/4/2020 at 10:31 AM, johnnyboy said: But you can place a small destructible object near the mining shovel, and base your trigger off that . I'm assuming you are having player place explosives near the mining shovel. You can even place a hidden AI, hide him (hideObjectGlobal true), and set him to have no voice (so you don't have a talking shoel!), and attach him to the shovel so he can't move. Now an explosion near that unit would kill this ai, and you could detect that and use it for your trigger condition. Good idea, but to take it further. It's best to avoid unnecessary attach commands for performance reasons, same with placing unnecessary AI units. Best would be to place some small destructible object (I know Johnnyboy knows this, posting this for the OP). 2 Share this post Link to post Share on other sites
pierremgi 4933 Posted January 5, 2020 Or just detect the explosive ammo. Depending on what you intend to do for "destroying" the object. In one of my (old) scenario (end Game fashion) , I had to blow up a C130 wreck (name C130_1 here). As wreck, the object isn't destroyable. So i placed a trigger any player present In on act: { _handle = _x addEventHandler["take", { params ["_plyr","","_charge"]; if ( toLowerANSI _charge in ["democharge_remote_mag","satchelcharge_remote_mag","claymoredirectionalmine_remote_mag","slamdirectionalmine_wire_mag"]) then { _charge_to_place = allmines select (count allmines -1); [_plyr,_charge_to_place,_thisEventHandler] spawn { params ["_plyr","_charge","_eh"]; waituntil {isnull _charge}; deleteVehicle c130_1; _plyr removeEventHandler ["take",_eh]; }; }; }] } forEach thisList; EDITED 3 Share this post Link to post Share on other sites
johnnyboy 3799 Posted January 5, 2020 30 minutes ago, pierremgi said: Or just detect the explosive ammo. Depending on what you intend to do for "destroying" the object. Perfect solution, all coded, and ready to use, with a bow on it! You should reward yourself and head immediately to a beautiful Tahitian beach! 🐠🌴🌺🐟🍺🌞😎 1 Share this post Link to post Share on other sites
stburr91 1011 Posted January 5, 2020 It's working now, thanks pierremgi. Share this post Link to post Share on other sites
pierremgi 4933 Posted January 5, 2020 My bad. I simplified too quickly my script. Corrected now. 1 Share this post Link to post Share on other sites
stburr91 1011 Posted January 5, 2020 1 hour ago, pierremgi said: My bad. I simplified too quickly my script. Corrected now. It's working perfectly now, thanks. Here's a little video of it in use, with a little extra I added for more effect. 4 Share this post Link to post Share on other sites
johnnyboy 3799 Posted January 5, 2020 23 minutes ago, stburr91 said: Here's a little video of it in use, with a little extra I added for more effect. Awesome added detail of replacing whole object with parts. That extra effort pays off in immersion IMO. @Kreyne in your case, you could sink the Steam Shovel via setpos with a negative z value, and use BIS_fnc_setPitchBank to tilt it. You could even simulate breaking the shovel in 2 pieces by tilting and sinking original shovel so only backend showing above ground, and creating a second steam shovel next to it that is sunk and tilted differently so only the shovel part above ground. And possibly add a couple airplane crater objects around it for rubble (filter objects with word "crater" to find these"). #ImmersionMatters!!! 5 Share this post Link to post Share on other sites
stburr91 1011 Posted January 6, 2020 2 hours ago, johnnyboy said: Awesome added detail of replacing whole object with parts. That extra effort pays off in immersion IMO. @Kreyne in your case, you could sink the Steam Shovel via setpos with a negative z value, and use BIS_fnc_setPitchBank to tilt it. You could even simulate breaking the shovel in 2 pieces by tilting and sinking original shovel so only backend showing above ground, and creating a second steam shovel next to it that is sunk and tilted differently so only the shovel part above ground. And possibly add a couple airplane crater objects around it for rubble (filter objects with word "crater" to find these"). #ImmersionMatters!!! I completely agree, it's well worth the time to create a little immersion. Here's a little test I did for destroying the large shovel using your suggestion. 5 Share this post Link to post Share on other sites
johnnyboy 3799 Posted January 6, 2020 54 minutes ago, stburr91 said: Here's a little test I did for destroying the large shovel using your suggestion. Perfect! Agreed, totally worth it. Share this post Link to post Share on other sites
pierremgi 4933 Posted January 6, 2020 Sure! Nice work. Share this post Link to post Share on other sites
Grumpy Old Man 3550 Posted January 6, 2020 Bad guys destroying nice shovel thingies. Me no like. Spoiler Looks pretty neat though. Cheers 1 Share this post Link to post Share on other sites