====== ArmA 3 Virtual Artillery ======
[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]], [[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|ArmA 3 Tools]]
**2022-06-20T07:04:00Z**
https://community.bistudio.com/wiki/BIS_fnc_fireSupportVirtual
Nothing needed in mission.sqm, just call this from script. Fires "Sh_82mm_AMOS" magazine ammo 300 meters in front of player, with 100 meter spread, total of 10 rounds with 2 second delay.
//[target, mag, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn BIS_fnc_fireSupportVirtual
[[(getPos player select 0), (getPos player select 1) + 300, 0], "Sh_82mm_AMOS", 100, 10, 2] spawn BIS_fnc_fireSupportVirtual;
Support menu 0-8 artillery call.
description.ext:
class CfgCommunicationMenu
{
class PMC_VirtualMortars
{
text = "Call 82mm Mortar Strike";
submenu = "";
expression = "[_pos, 'Sh_82mm_AMOS', 100, 8, 2] spawn BIS_fnc_fireSupportVirtual;";
icon = "";
cursor = "";
enable = "1";
removeAfterExpressionCall = 0;
};
class PMC_VirtualArtillery
{
text = "Call 105mm Artillery Strike";
submenu = "";
expression = "[_pos, 'Sh_155mm_AMOS', 200, 30, 2] spawn BIS_fnc_fireSupportVirtual;";
icon = "";
cursor = "";
enable = "1";
removeAfterExpressionCall = 0;
};
};
init.sqf:
[player, "PMC_VirtualMortars", nil, nil, ""] call BIS_fnc_addCommMenuItem;
[player, "PMC_VirtualArtillery", nil, nil, ""] call BIS_fnc_addCommMenuItem;