PMC websites shut down November 13th 2025 unless web hosting fees are paid. See up to date status from PMC Website Hosting and Domain Registration Fee Status forum topic. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond November 13th 2025 when web hosting fees are due.

User Tools

Site Tools


arma3:scripting:virtual-artillery

This is an old revision of the document!


ArmA 3 Virtual Artillery

ArmA 3, Config, Missions, 3D Modeling, Scripting, Terrain, Texturing, 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.1656160542.txt.gz · Last modified: 2022/06/25 12:35 by snakeman