Posted: . At: 1:14 PM. This was 5 years ago. Post ID: 12955
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to spawn a missile in Arma 3 that will seek out and destroy a target.


This code will spawn a missile that will seek out and destroy a target. The first parameter is a location, then I set the ammo type. This is a cruise missile with a massive warhead. And car1 is the target I want to destroy. Spawn it high in the air and it will come around and destroy the target easily.

[[8132.62,4392.19,1110.44], "ammo_Missile_Cruise_01", car1, 180, false, [0,0,0.25]] spawn BIS_fnc_exp_camp_guidedProjectile;

This function makes it very easy to spawn a projectile and take out a vehicle in a scripted event. The blast radius of the cruise missile is very large, make sure you are well away from the impact point. This function was a great discovery, this makes a scripted mission even easier to create. Have a look in CfgAmmo to find various missiles to try out with this function.

This is another very useful, but obscure function in Arma 3. This automatically changes AI skill depending on how many players are on the server. A good way to change it up when a lot of players are on. Put this in the initServer.sqf file.

[
true,
	[
		[ WEST,0.1,0.2,0.9,0.8 ],
		[ EAST,0.1,0.2,0.9,0.8 ]
	]
] call BIS_fnc_EXP_camp_dynamicAISkill;

Yet another hidden function, change the number of men in a group depending on how many players are on.

[soldat_group, 2, true] call BIS_fnc_EXP_camp_balanceGroup;

The number 2 is the minimal number of men in the group. That would be very useful for creating a dynamic mission that scales depending upon player count.

This is another example, this spawns a cluster cruise missile on our unfortunate offroad.

[[8132.62,4392.19,1110.44], "ammo_Missile_Cruise_01_Cluster", car1, 180, false, [0,0,0.25]] spawn BIS_fnc_exp_camp_guidedProjectile;

1 thought on “How to spawn a missile in Arma 3 that will seek out and destroy a target.”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.