Mando Bombs (mando_deploy_sadarm.sqf)

By Mandoble

mando_deploy_sadarm.sqf

Deploys a ground SADARM. Use this script as menu action script to provide players SADARM manual deployment capability. Number of SADARMs should be provided as third argument of the add action script.

These SADARMs have a scanning device and a rocket, when the scanning device detects a potential target inside its searching area (150m radius), the rocket is ignited and climbs over 100m to deploy a real SADARM.

This script requires the presence of mando_bombs_sadarm.sqf and mando_bombs_effects.sqf.

mando_sadarm_action global variable keeps (if any) the action id of player's sadarm deployment action.
if number of sadarms left is 0, action is removed and mando_sadarm_action returns to -1

Example:


// A player able to deploy 3 SADARMs.
player addAction ["Deploy SADARM (3 left)", "mando_bombs\mando_deploy_sadarm.sqf", 3];