OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: unleashed2k 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
-
If you search the ArmA boards for "IED" you would find this thread (http://www.ofpec.com/forum/index.php?topic=28956.0) 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
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:
if (local server) then {boom1 = "Bomb" createVehicle getMarkerPos "mBoom1" ; boom1 setDamage 1}
-
Thanks, I did every keyword but IED, dumb me lol :) but thx for the quick response, will try now!
-
Please note I corrected a small bug in item 4).
-
Thx for the fix :)