Jump to content
Sign in to follow this  
Coinkidoink

Dual Artillery.

Recommended Posts

Hello everyone,

No amount of searching, wikireading or general exploring has gotten me any closer to a solution so im just gonna post here and ask.

I have a little testing grounds mission where i am just prodding around to get better at the editor, and i am trying to fire off a MLRS barrage at a target and then illuminate it with a mortar barrage, pref at about the same time.

I have physical batteries on the map that both do these things coordinated through triggers and the SOM Module, however i can only do one of them and then the other is locked out.

Is there a way around this? Possibly putting the mortar barrage in a different category or something? I could just refill the support with a script, but the thing is that i want just one mortar barrage and one MLRS barrage, not multiple.

Hope this makes some sense.

Share this post


Link to post
Share on other sites

I think you can re-add support with a script, but in your case I would just drop the som module alltogether. I would just send both batterys a fire mission. You can find the code on the arty module wiki

It can be done in just a trigger. When I get home I can post an example if needed.

Share this post


Link to post
Share on other sites
I think you can re-add support with a script, but in your case I would just drop the som module alltogether. I would just send both batterys a fire mission. You can find the code on the arty module wiki

It can be done in just a trigger. When I get home I can post an example if needed.

That would be great Riouken, i'm still a bit unclear on it all and people who google their way to this thread might also benefit from it.

Share this post


Link to post
Share on other sites
I think you can re-add support with a script, but in your case I would just drop the som module alltogether. I would just send both batterys a fire mission. You can find the code on the arty module wiki

It can be done in just a trigger. When I get home I can post an example if needed.

That would be nice Riouken, would be nice to see it in action and maybe it would help out anyone who googles themselves to this page in the future.

Share this post


Link to post
Share on other sites

Most of this code is in the arty wiki just check it out or ask questions if your not sure about anything.

Just execute this on the server and provide the names of your arty battery's to the corresponding(_mymlrsBattery,_myd30Battery).


// Create the Fire mission templates
_heTemplate = ["IMMEDIATE", "HE", 0, 15];
_illumTemplate = ["IMMEDIATE", “ILLUMâ€, 10, 15];

// Get pos of the target above sea level.
_targetPos = getPosASL _targetUnit;

// Execute the fire missions.
[_mymlrsBattery, _targetPos, _heTemplate] call BIS_ARTY_F_ExecuteTemplateMission;

[_myd30Battery, _targetPos, _illumTemplate] call BIS_ARTY_F_ExecuteTemplateMission;

Share this post


Link to post
Share on other sites

That just gives me a "Local variable in global space" error, in front of _targetpos and _heTemplate at the "Execute firemissions" paragraph, im sure there is something very basic i am missing here.

Edit: Figured it out, the underscore meant that it was up to me to name those variables and then i had to add a radiotrigger to activate it, thank you!

Edited by Coinkidoink

Share this post


Link to post
Share on other sites

@Coinkidoink

Arma will not accept local variables in triggers,and init fields.

_MyVariable = "I now understand local/global variables"; //  <---- This is a local Variable
MyVariable = "I now understand local/global variables"; //    <---- This is a global Variable

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  

×