Jump to content
laxemann

Dead simple random AA script by Laxemann

Recommended Posts

Hey guys,

I'm currently teaching myself some basic SQF knowledge and came around with this script lately.

There are two versions:

• The "regular" one lets you define positions, e.g. game logics, to shoot at. (The script therefore can be used to make tanks and HMGs shoot at specific positions aswell.)

• The "autonomous" version doesn't need pre-defined positions and will make the vehicle fire automatically in the sky.

Usage:

"Regular" version:

null = [unit, [Array with positions], [Min,Max], [Min,Max], Weapontype, Ammotype] execVM "AAFire.sqf"

unit = Unit which is supposed to shoot (e.g.this)

[Array with Positions] = Positions the vehicle should fire at (e.g. gamelogics named [Pos1,Pos2,Pos3])

[Min,Max] = Minimum and maximum amount of shots fired (e.g. [2,5])

[Min,Max] = Delay between the single firebursts (e.g. [12,15])

Weapontype = Weapontype used (e.g. "autocannon_35mm")

Ammotyoe (Optional) = Ammo used (e.g. "680Rnd_35mm_AA_shells_Tracer_Green")

Example for the ZSU-39 Tigris:

null = [this, [Pos1,Pos2,Pos3], [2,5], [12,15], "autocannon_35mm", "680Rnd_35mm_AA_shells_Tracer_Green"] execVM "AAFire.sqf"

The vehicle (this) fires at the gamelogics Pos1, Pos2 and Pos3 with 2 up to 5 rounds per firebursts and 12 to 15 seconds between each fireburst.

The weapon "autocannon_35mm" is used with the ammotype "680Rnd_35mm_AA_shells_Tracer_Green"

The "autonomous" version:

Exactly the same as for the "regular" one, but the "positions array" has to be deleted.

Example:

null = [unit, [Min,Max], [Min,Max], Weapontype, Ammotype] execVM "AAFire.sqf"

Issues?

None so far

DOWNLOAD (DROPBOX)

Changelog:

New version number: 1.05

• Rewritten code, better performance

• The first array now determines the amount of rounds fired with each fireburst instead the delay between each shot (which was stupid)

Media

Here's a video showing the autonomous version:

Enjoy!

Edited by LAxemann
Update

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Edited by Guest
mirror updated!

Share this post


Link to post
Share on other sites

Thanks! Added a video showing the autonomous version.

Share this post


Link to post
Share on other sites

Update:

Changelog:

New version number: 1.05

• Rewritten code, better performance

• The first array now determines the amount of rounds fired with each fireburst instead the delay between each shot (which was stupid)

Share this post


Link to post
Share on other sites

Works fine for me. I did a test in the editor; it creates a more realistic aa fire instead of placing the ingame tracer module (if atmosphere matters). Thanks.

Share this post


Link to post
Share on other sites

You're welcome, old buddy :)

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

×