Jump to content
Sign in to follow this  
sodomys

how do i create an artillry fire mission?

Recommended Posts

hello, well am kind of new to Arma, and am finding some problems with creating an artillry fire mission, i still cant find a way to give a radio order to the battery to initiate the barrage, so how to i connect the radio with the battery? thanks

Share this post


Link to post
Share on other sites

http://community.bistudio.com/wiki/Artillery_Module#ARTY_Quick_Start

That Arty Quick Start is really all you need to know, but I'd recommend reading on further. That lets you make your own battery (so you can use howitzers or MLRSs). It's actually pretty simple.

___

A real easy way to go about doing it though...

1) Add "SecOp Manager" to the map, under Modules

2) Synchronize the module to yourself

3) Add the following to a trigger's On Act. field:

[["artillery_barrage"], player] call BIS_SOM_addSupportRequestFunc;

When that line activates you'll get the option in your radio.

It sounds like you're trying to make your own battery though. If so just let me know what part you're having trouble with specifically, like how far you're getting in relation to that Arty Quick start I sent you.

Share this post


Link to post
Share on other sites

thank you for your reply, but the sad thing about it is that i understood nothing, well first of all, am really new to arma, so well what is SecOp Manager and how do i add it or/and where could i find it, and you mean by saying synchronize the module to myself is that to sync to the soldier am playing? and where do i write this script?

look man can you write me the procedure step by step as if you're making the fire mission, just type me the commands you do? thank you, i really approciate it

Share this post


Link to post
Share on other sites

I purposely included "under Modules" in hopes you'd see the "Modules" button in the editor... there aren't many buttons.

Place it on the map just like you would a unit. Click Synchronize, and a drag a line from the SecOp Manager to the character you are playing.

Create a trigger. Make it set to "Radio Alpha." On the trigger's "On Activation" field, type in that code.

edit: ok after posting that i realize i just said the same thing with the same words, just longer >.> idk how much more easily I can explain it.

Share this post


Link to post
Share on other sites

I kind of feel retarded, but I can't figure out how to follow the ARTY Quick Start you posted.

The SecOps works fine.

Basically this is what I do:

1) Place rifleman as me, the player.

2) Place m119. I tried 1, or 3. If 3 I set one of them as the group leader and the other guys in his group.

3) Place artillery module

4) Sync to ARTY leader

5) Place a target some place. Either it is a tank or a location.

This is where I think I'm screwing up. The guide says "To set up a fire mission template, create an array consisting of the following elements, in respective order..." then it gives the example "_heTemplate = ["IMMEDIATE", "HE", 0, 15];"

Now where do I place that template? I threw it in the Arty module init field, as well as the init field of some game logic.

Next it says to set a target unit. "The easiest way to test this is to set a target vehicle or unit, and then use: _targetPos = getPosASL _targetUnit;"

Obviously _targetUnit is the name of the tank or location I've placed. But where do I place that line? I tried doing it in the trigger for radio alpha.

Finally, the guide says "Then call the fire mission in on the position by using: [_myBattery, _targetPos, _heTemplate] call BIS_ARTY_F_ExecuteTemplateMission;"

I place this line in a trigger for radio alpha. _mybattery is the name of the group leader, right?

Anyway, I do this and nothing happens. I've spent an hour looking at it and tweaking stuff and I feel stupid.

I'm sure you can help me and point out the simple mistake I must be making! Thanks.

Share this post


Link to post
Share on other sites

Here you go. This works 100%, I know cuz it's the exact code I use in my mission I just finished:

By the way, it goes in a script file that you need to execute from within the game or another script. In my case, when tanks are detected passing a trigger area, it launches this script, called by using the following in the trigger's On Activation field:

nul=[] execVM "scripts\arty.sqf"

(it's located in the scripts folder in my main mission folder, so gotta place that there)

arty.sqf

_tempSADARM = ["IMMEDIATE", "SADARM", 3, 6];
_targetPos = getMarkerPos "rpgMan";
[arty, _targetPos, _tempSADARM] call BIS_ARTY_F_ExecuteTemplateMission;

.

This launches 6 SADARM rounds at a 3 second interval, at a marker I created named "rpgMan".

The first line sets the template: rounds, type, time, etc.

The second line loads where I want it to fire into the variable "_targetPos"

The third line executes the fire mission with 3 arguments in the array:

1) the name of my arty logic - "arty"

2) the target position

3) the name of the fire mission template I created

Hope that all helps and clarifies it

  • Like 1

Share this post


Link to post
Share on other sites

That works perfectly. I've never made a script before, but I guess that was the key.

I was messing with the thing for about an hour, getting frustrated when I realized I had the target too close to the artillery pieces (on the other end of Utes island...). I threw the marker in the ocean and suddenly the artillery pieces were firing.

Thanks a ton. Now I'll just work with it, do some tweaking, and have fun.

Share this post


Link to post
Share on other sites

thanks for the instructions man, but the issue is i dont have a module function in the editor, i dont know why, anyone can help me ?

Share this post


Link to post
Share on other sites
Maybe one of these 25 threads would shed some light?

http://forums.bistudio.com/search.php?searchid=244936

You probably don't have the most recent update if you don't have a module button. Take a look at the Wiki link again. Go all the way to the bottom of the page and DL the 2 example missions by Headspace. Those pretty much show what to do for a basic artillery setup. Also check the main Artillery thread. The conversation is extensive about the Artillery.

http://forums.bistudio.com/showthread.php?t=73272&highlight=artillery+module

Share this post


Link to post
Share on other sites

dont have a Modules button >.> ...

Share this post


Link to post
Share on other sites

okay, well would someone send me the update link to download?

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  

×