ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, 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;