Jump to content
Sign in to follow this  
nicklomas

Artillery Script

Recommended Posts

Hey guys, i'm trying to create a battery of D-30's firing for a cut scene.

I've done this before and forgotten how to do it but had then firing at an object.

I can't seem to get it to work properly even using the BI tutorial. Does anyone have a script they can post on here for one they have used. I seem to be able to learn better from working in reverse

Share this post


Link to post
Share on other sites

There's plenty of ways of doing this. This one looks pretty good to me.

Place 4 D-30s down. Place a Helipad named FakeTargetBase in the direction you want to fire towards. It's init would be this:

this setpos [getpos this select 0, getpos this select 1, 500];

Put a BLUFOR M1A1 somewhere with no fuel and no ammo and it's init as this;

this attachTo [fakeTargetbase,[0,0,0]];

Then set a trigger with this as the onAct:

0 = []spawn { 
{
	group _x reveal fakeTarget; 
	_x doTarget fakeTarget;
	_x doWatch fakeTarget; 
	sleep 2; 
	_x fireAtTarget [fakeTarget]
} forEach [d1, d2, d3, d4];
};

As you see in this demo mission they'll raise their muzzles, fire in order then just starting going crazy trying to hit it till you have enough footage. :) If you remove the tank and rename the helipad to fakeTarget they'll just shoot once. To make them stop shooting just remove their ammo, Radio Bravo in the demo.

Share this post


Link to post
Share on other sites

fireAtTarget is an OA only command, are you using just ArmA 2 perhaps?

Share this post


Link to post
Share on other sites
how would you make that work for GRADs?

You'd use BM-21 Grads instead of D-30s... :p

They'll only fire once unlike the D-30s though. Do keep in mind this solution is only for a cutscene or video. They aren't actually going to hit anything and off camera you'll have a floating tank. It's just a trick to get a line of guns or grads to pivot, tilt up and fire dramatically in order.

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  

×