Jump to content
Sign in to follow this  
SRBuckey5266

Does AI have to be in a vehicle for the vehicle to fire?

Recommended Posts

Can I use "doArtilleryFire" on an empty M5 Sandstorm? I do NOT want AI.

Edited by SRBuckey5266

Share this post


Link to post
Share on other sites

Dont think so.

But if you just want arty shells dropping you could just spawn them.

Share this post


Link to post
Share on other sites
Can I use "doArtilleryFire" on an empty M5 Sandstorm? I do NOT want AI.
Create an empty M5 Sandstorm on the map and call it M5. Create a trigger with your condition on when you want the M5 to fire it's weapons.

Put this in the On ACT of your trigger

null = [] execVM "FireM5.sqf";

FireM5.sqf

_gunnygrp = [getPos M5, WEST, ["B_crew_F"],[],[],[],[],[],0] call BIS_fnc_spawnGroup;
_gunny = ((units _gunnygrp) select 0);
_gunny assignAsGunner M5;
_gunny moveInGunner M5;
_gunny commandArtilleryFire [[0,0,0],getArtilleryAmmo [M5] select 0,4];
sleep 10;
_gunny setDamage 1;
deletevehicle _gunny;

select 0 , 4 where 4 is the amount of rounds to fire.

sleep 10 seconds before deleting the spawned gunner.

If you increase the number of rounds, then increase the sleep to allow him to fire them.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×