Home   Help Search Login Register  

Author Topic: Exploding IED's via Triggers  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

Offline unleashed2k

  • Members
  • *
Exploding IED's via Triggers
« on: 22 May 2007, 20:52:04 »
Okay, I have a perfect IED place...This is what I need to happen.

There are three ID's, A Bus station (12312), A Road (12418), and A Fuel Station (831)!

Bus station is on the left, road middle, and fuel station right.

What I need is, when a unit (any unit) this can only be triggered once, crosses into the trigger zone, it will set off
and destroy all three ID's with a big bang, which will also destory the vehicles near and at its explosion zone.

How to do this?

Also, if anyone wants to setup a demo mission, the place i'm talking about is on the west main island, the road up top on the right, (top main road, that goes directly to corazol, that fuel station)

This is for multiplayer
« Last Edit: 22 May 2007, 21:04:39 by Mr.Peanut »

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Exploding ID's via Triggers
« Reply #1 on: 22 May 2007, 21:04:25 »
If you search the ArmA boards for "IED" you would find this thread with a similar question.

1)Place a marker of type empty on your map and call it mBoom1.

2)Place a trigger where you want it with the condition you want and in the On Activation
Code: [Select]
boom1 = "Bomb" createVehicleLocal getMarkerPos "mBoom1"; boom1 setDamage 1
You only have one potential problem. If your trigger is very small such that network desync might cause it not to fire on all clients, then:

3)Place a game logic on your map and name it server

4)Change the code in the trigger to:
Code: [Select]
if (local server) then {boom1 = "Bomb" createVehicle getMarkerPos "mBoom1" ; boom1 setDamage 1}
« Last Edit: 23 May 2007, 02:25:27 by Mr.Peanut »
urp!

Offline unleashed2k

  • Members
  • *
Re: Exploding IED's via Triggers
« Reply #2 on: 22 May 2007, 22:36:03 »
Thanks, I did every keyword but IED, dumb me lol :) but thx for the quick response, will try now!

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Exploding IED's via Triggers
« Reply #3 on: 23 May 2007, 02:26:04 »
Please note I corrected a small bug in item 4).
urp!

Offline unleashed2k

  • Members
  • *
Re: Exploding IED's via Triggers
« Reply #4 on: 25 May 2007, 20:42:20 »
Thx for the fix :)
« Last Edit: 25 May 2007, 20:43:52 by unleashed2k »