For Arma 3 players, this guide simply explains how to set up how to delete a terrain object with a trigger. Let’s check out how to do it.
The guide
Problems with floating road sections, invisible roads which could be driven on, not possible at all, complex scripts and generally not working.
But i did it, and it’s super easy. You need 1 module, 1 variable name and one line of code.
It’s more like deleting the bridge, but with enough smoke this is good enough.
Step 1.
Find the bridge you want to delete/blow up.
Step 2.
Get the ‘Edit terrain object’ module, double click it and make sure the ‘. . .’ icon is pressed in object types.
Step 3.
Now take your edit terrain object module and move it so the bridge gets a purple/pink box. Then you go into the module and in Object variable name write ‘bridge’ (or whatever).
Step 4.
Now you can reference this through code. So get a trigger, for simplicity make a trigger with if player present.
In the ‘on activation’ simply put.
hideobject bridge
Step 5.
Walk into the trigger area, watch the bridge vanish.
Step 6.
Make something much much cooler and fancy than this, with timed explosives, spawning rubble, sound effects, what have you.
And that is my simple tutorial! It might not be news for everyone, but i’m super stoked i managed to figure it out.