Author: phronk
Author Website:

Requirements: No addons required

Version: 0.2

Short description: 'Simple IED Script' will spawn IEDs on / alongside random road segments within predetermined IED area markers setup by the mission designer.

Date: 2017-07-01 17:13

Comments: (2)


Simple IED Script


'Simple IED Script' will spawn IEDs on / alongside random road segments within predetermined IED area markers setup by the mission designer. The position, direction, appearance, and blast magnitude of the IEDs are all random. Additionally, the script will also spawn trash randomly along the roads; trash can sometimes spawn on the position of an IED as well. The script is tiny, optimized, and compatible in all environments (SP, MP, Dedi). It doesn't require any addons or additional scripts and is compatible with any map that has roads.

Tiny filesize! 2KB
Fast performance
Compatible with SP, MP, and Dedicated
Works on any map with roads
Doesn't require any mods or additional scripts
Easy to implement!
Randomized Results:
-IED type spawned
-IED blast magnitude is random (damage / radius)
-IED position & direction
-Chance for trash to spawn with IED
-Trash appearance variety
IEDs are proximity based:
-If player is within 10 meters of IED AND is moving faster than a slow crawl, the IED will detonate
IEDs can be disarmed:
-If player is an Explosive Specialist and has a ToolKit, he can slow crawl up to the IED safely and disarm it
-IEDs can be detected with a Mine Detector

Installation / Usage:
For usage instructions and information of how to use the Simple IED Script please refer to the included documentation and/or example mission.

Move the "ied.sqf" from the downloaded file, to your mission folder.
Copy & Paste below line into your mission's "init.sqf":
Create rectangular area markers in your mission and name them.
3a. Make sure the A and B values of that marker is the same! Example: 500x500 In the "ied.sqf", add the names of your IED area markers to the array in line 1. For example:
In the "ied.sqf", you can change the number of IEDs to spawn per marker, on line 5. For example:
iedNum=8; //Will spawn 8 IEDs per IED marker
Optional Debug Toggle:
If you want to see the IED area markers in-game, comment out line 6. For example:
//{_x setMarkerAlpha 0;}forEach iedMkr;
If you want to see markers on the position of all spawned IEDs, then uncomment lines 26 through 30. For example:
	 _mkrID=format["m %1",getPosATL _ied];
	 _mkr=createMarker[_mkrID,getPosATL _ied];
	 _mkr setMarkerShape "ICON";_mkr setMarkerType "mil_dot";
	 _mkr setMarkerBrush "Solid";_mkr setMarkerAlpha 1;
	 _mkr setMarkerColor "ColorEast";
	 iedMkrs set[count iedMkrs,_mkr];

Media: has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Youtube channel

Known issues:
None at this time. Needs more dedicated server testing with multiple players. Script will not work in missions/mods that prohibit the use of remoteExec.

Future plans:
Fix any bugs found
Add blacklist marker support
Add option for script to auto-detect areas to spawn IEDs in

Added: Debug setting
Added: Setting to disable damage to IED
Added: Comments to each setting
Added: Array variable containing IED ammo classes
Added: Crater decal
Tweaked: IED markers are visible if Dbug = true
Tweaked: IED is deleted only if it is invulnerable via script settings
Optimized: Replaced set command with pushBack
Optimized: Simplified deletion of IED objects upon activation
Optimized: Simulation of junk is disabled globally, instead of only on server
Replaced: remoteExec, with a simple trigger
Removed: _iedDel variable

Initial release

Forum topic:
- BI forums

Enable javascript to be able to download from Armaholic please!

Tags: Ied,   Modern,   Scripts