User Tools

Site Tools


arma3:scripting:virtual-artillery

ArmA 3 Virtual Artillery

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;
arma3/scripting/virtual-artillery.txt · Last modified: 2024/08/02 16:35 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.