An improvised explosive device (IED) is a bomb created and utilized in a way that circumvents conventional military action. It is typically constructed of standard military explosives (artillery rounds are popular) which are attached to a detonating mechanism. The most common usage of IED's are as disguised roadside bombs with the intent of targeting passing military personnel and vehicles.
01
choose the location on your mission map where you would like to place the IED. Click the 'Units' button on the right sidebar and then click on the map. Working in the new window, select 'Empty' from the 'Side' dropdown and 'IEDs' from the 'Class' dropdown.
Select the style of IED you would like to use from the 'Unit' dropdown (see above image for styles) and then enter a unique name in the 'Name' field. Click 'OK'.
02
Click the 'Triggers' button on the right sidebar and then click on the map close to the IED. Enter the size of the trigger area in the 'Axis a' and 'Axis b' fields. Between five and ten will cover most roads from edge to edge.
Click on either 'Ellipse' or 'Rectangle' to determine the shape of the trigger area. Pick the side you would like to activate the trigger from the 'Activation' dropdown. Only the side chosen will trigger the IED when they pass through the area.
Enter the following code in the 'On Act.' field:
bomb="Bo_GBU12_lgb" createVehicle (getPos ied01)
The number at the end (ied01) should be replaced with the unique name that you gave your IED. Click 'OK'.
03
Your IED/Trigger setup should look like the image below. The blue flag and rectangle outline are the trigger. The IED (faint orange square) must be placed within the perimeter of the trigger area or it will not detonate.
05
Click 'Preview' on the right sidebar and enter the mission. As demonstrated in the image below, you should see a small, unobtrusive IED sitting placidly on the road. For illustrative purposes this IED has been placed in plain sight.
Typically you will want to place the IED off the side of the road so as not to be so obvious. Not only will players see it if placed in the road but AI soldiers and vehicles will quickly take notice and attempt to avoid it.
Related article: Adding Mission Tasks [ArmA 2]
Related article: Creating a Mission Intro Splash Screen [ArmA 2]
Related article: Creating Multiplayer Missions [ArmA 2]
Related article: General assembly: ArmA 2 VPN Setup [ArmA 2]
Related article: Spawning Soldiers with Timers [ArmA 2]
Related article: Implement Looping Waypoints [ArmA 2]
Related article: Code Design Potpourri [ArmA 2]
written by RJ Wattenhofer