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; |
https://www.youtube.com/watch?v=2bNr15-yU14