Jump to content
Sign in to follow this  
Mr-Murray

Artillery Support

Recommended Posts

ArmA & OFP do not publish the say over network. The script only runs on the server and as such only runs the sound on the server and not on the Clients. You can play the sound on all computers by using the init field of a gamelogic or by using network services lite or equilevant to execute the Say at all computers at once.

Share this post


Link to post
Share on other sites

still have no idea how to make it happen.

dunno what codes to put. im bad at codes.

Share this post


Link to post
Share on other sites
Hey Mr_Murray, great script!

Im currently using it with the 2 radio's but I just want to know...

How do I make it so that only squad leaders can use the artillery??

I dont want it so that any player can use it, I only want squad leaders to have access...

Thanks

I use Mr Murrays script too and when playing LAN games with others, only the squad leaders can call for artillery fire. No other player not squad leader were able to do so. Strange why yours is not working? Unless I did something to mine not realising it.

Share this post


Link to post
Share on other sites
still have no idea how to make it happen.

dunno what codes to put. im bad at codes.

I'm also very interested in how to make it so all the clients hear the sounds in MP, it really makes no sense to use it otherwise.

Also bravo6, can you post the code you used for running the script on as a trigger?

Share this post


Link to post
Share on other sites
still have no idea how to make it happen.

dunno what codes to put. im bad at codes.

I'm also very interested in how to make it so all the clients hear the sounds in MP, it really makes no sense to use it otherwise.

Also bravo6, can you post the code you used for running the script on as a trigger?

<span style='font-size:17pt;line-height:100%'>Artillery using trigger</span> (just East side)

in trigger init: [] exec "eastari\setfire.sqs"

im using these scripts:

ari.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;Script & Idea by Mr-Murray 2006

;mr-murray@bossmail.de

;www.mapfact.net

#loop

@(fire)

fire=false

?(!(local server)):exit

~10

[E1,EATarget1] exec "eastari\feuer.sqs"

~5

[E2,EATarget1] exec "eastari\feuer.sqs"

~4

[E3,EATarget1] exec "eastari\feuer.sqs"

~3

[E4,EATarget1] exec "eastari\feuer.sqs"

~2

[E5,EATarget1] exec "eastari\feuer.sqs"

~2

[E6,EATarget1] exec "eastari\feuer.sqs"

goto "loop"

artismoke.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(!(local server)):exit

~0.1

_radius = 5

_p = getpos _this

_x = _p select 0

_y = _p select 1

_i=0.0

#LOOP

_xs = sin _i

_ys = cos _i

drop ["\ca\data\cl_basic" , "" , "Billboard" , 50 , 5 , [_x + (_xs * (_radius + 3)), _y + (_ys * (_radius + 3)), 0] , [1.8,2.8,0] , 1 , 2 , 1.55 , 1 , [2.5,6] , [[0.35,0.3,0.25,0.5],[0.35,0.35,0.25,0.4],[0.35,0.3,0.25,0.2],[0.4,0.35,0.3,0]] , [0] , 0.2 , 0.2 , "" , "" , ""]

drop ["\ca\data\cl_basic" , "" , "Billboard" , 50 , 5 , [_x + (_xs * _radius), _y + (_ys * _radius), 0] , [1.5,2.5,0] , 1 , 2 , 1.55 , 1 , [1.5,5.7] , [[0.35,0.3,0.25,0.5],[0.35,0.35,0.25,0.4],[0.35,0.3,0.25,0.2],[0.4,0.35,0.3,0]] , [0] , 0.2 , 0.2 , "" , "" , ""]

drop ["\ca\data\cl_basic" , "" , "Billboard" , 50 , 5 , [_x + (_xs * (_radius - 3)), _y + (_ys * (_radius - 3)), 0] , [1.2,2.5,0] , 1 , 2 , 1.55 , 1 , [1.5,5.4] , [[0.35,0.3,0.25,0.5],[0.35,0.35,0.25,0.4],[0.35,0.3,0.25,0.2],[0.4,0.35,0.3,0]] , [0] , 0.2 , 0.2 , "" , "" , ""]

_i = _i + 4.8

?(_i < 360): goto "LOOP"

exit

feuer.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;Script by Mr-Murray and JörgF 2006

;mr-murray@bossmail.de

;www.mapfact.net

;www.mr-murray.de.vu

~Random 2

_K = _this select 0

_Z = _this select 1

_X = Getpos _Z select 0

_Y = Getpos _Z select 1

_K DoWatch [_X,_Y,5000]

_A =_K Ammo "D30"

~5

_K fire "D30"

@ _A > _K Ammo "D30"

_K exec "eastari\artismoke.sqs"

~2

_N = nearestObject [_K,"HeatD30"]

_X = _X+((Random 60)-40)

_Y = _Y+((Random 60)-40)

_H = "HeliHEmpty" CreateVehicle [_X,_Y]

~1

_H say "ari"

~1

_N setpos [_X,_Y,0]

"Sh_105_HE" CreateVehicle [_X,_Y,0]

_H exec "eastari\artismoke.sqs"

~0.5

deleteVehicle _H

exit

setfire.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;Script & Idea by Mr-Murray 2006

;mr-murray@bossmail.de

;www.mapfact.net

setfire=true

setfire=false

@!setfire

[] exec "eastari\ari.sqs"

fire=true

publicvariable "fire"

publicvariable "ATarget"

titletext ["","plain down"]

~5

exit

Share this post


Link to post
Share on other sites

I get this error now... crazy_o.gif

` _A > _K l#l Ammo "M119"`

Error ammo:Type Number,expected object

Only one of the arty rounds fire. The rest all give this error. It works fine before I merge into my map... huh.gif

Share this post


Link to post
Share on other sites
I get this error now... crazy_o.gif

` _A > _K l#l Ammo "M119"`

Error ammo:Type Number,expected object

Only one of the arty rounds fire. The rest all give this error. It works fine before I merge into my map... huh.gif

i said east arty only, not west.

m119 is west armor.

Share this post


Link to post
Share on other sites

ops sorry wrong place.. moderator pls delete this post

sorry

Share this post


Link to post
Share on other sites

Big Thanks Bravo6 for posting the code!

I'll definitely give this a try this upcoming weekend.

Share this post


Link to post
Share on other sites

I'm trying to use this script but use it so I can call it from anywhere using a Radio Alpha trigger. I've made many attempts but all have failed so far! Can somebody tell me how to correctly do this please?

Cheers smile_o.gif

Share this post


Link to post
Share on other sites

I have a problem. I got this to work fine all day, but now it has stopped working? When I click on the map, no marker is appearing, and I get this error: ' k |#|DoWatch [_X,_Y,500] '

Error Type Any, expected Number

Please help me! huh.gif

Share this post


Link to post
Share on other sites

Just some guesses here as I haven't tried the script(yet)

feuer.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_K = _this select 0

_Z = _this select 1

_X = Getpos _Z select 0

_Y = Getpos _Z select 1

_K DoWatch [_X,_Y,5000]

this is sent to feuer.sqs (example)

[E1,EATarget]

Where

E1 is a gun

EATarget an InvisibleH

Maybe you mission doesn't have all of them?

as there are six guns needed.

ari.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

...

[E1,EATarget] exec "eastari\feuer.sqs"

[E2,EATarget] exec "eastari\feuer.sqs"

[E3,EATarget] exec "eastari\feuer.sqs"

[E4,EATarget] exec "eastari\feuer.sqs"

[E5,EATarget] exec "eastari\feuer.sqs"

[E6,EATarget] exec "eastari\feuer.sqs"

...

Share this post


Link to post
Share on other sites

Yeah but when the script are working, only 5 canons work.

So I need to delete one of them.

I'll figure it out, but I could really need some help from Mr.Murray.

Thanks for the reply Taurus.

Share this post


Link to post
Share on other sites

Np! smile_o.gif

If you remove any of the cannons from the mission

i.e.

you remove E6 and E5 you need to alter the script accordingly

eastari\ari.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

...

[E1,EATarget] exec "eastari\feuer.sqs"

[E2,EATarget] exec "eastari\feuer.sqs"

[E3,EATarget] exec "eastari\feuer.sqs"

[E4,EATarget] exec "eastari\feuer.sqs"

...

if its for West side and remove W5 and W6

westari\ari.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

...

[W1,ATarget] exec "westari\feuer.sqs"

[W2,ATarget] exec "westari\feuer.sqs"

[W3,ATarget] exec "westari\feuer.sqs"

[W4,ATarget] exec "westari\feuer.sqs"

...

Noticed that

I see the original westari\ari.sqs and eastari\ari.sqs scripts differs, dunno why.

Share this post


Link to post
Share on other sites

How do I put the scripts in here, so they look like they do in the file?

If I just paste them, it look wrong.

Share this post


Link to post
Share on other sites

you use the code-tag

example

[ code]

myScriptLine1;

myScriptLine2;

myScriptLine3;

...

[ /code]

Without the space after "["

it'll look like this when posted

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

myScriptLine1;

myScriptLine2;

myScriptLine3;

...

There is also the "Code"-button which you can use.

Press it ones to add the "start"-tag, and press it another time to add the "close"-tag

Share this post


Link to post
Share on other sites

I don't understand that whistle.gif

Anyway, here it is:

~Random 2

_K = _this select 0

_Z = _this select 1

_X = Getpos _Z select 0

_Y = Getpos _Z select 1

_K DoWatch [_X,_Y,5000]

_A =_K Ammo "M119"

~5

_K fire "M119"

#Next

@ _A > _K Ammo "M119"

_K exec "westari\artismoke.sqs"

~2

_N = nearestObject [_K,"HeatM119"]

_X = _X+((Random 60)-40)

_Y = _Y+((Random 60)-40)

_H = "HeliHEmpty" CreateVehicle [_X,_Y]

~1

_H say "Ari"

~1

_N setpos [_X,_Y,0]

_Bomb="SH_125_HE" CreateVehicle [_X,_Y,0]

_H exec "westari\artismoke.sqs"

~0.5

deleteVehicle _H

exit

Thanks.

Share this post


Link to post
Share on other sites

I think you need support immediately wink_o.gif

I´m very buzy at this time with my exams.

Thats one reason why my editing guide isn´t still finished.

I think I could give you a lil workshop on tomorrow.

Maybe via Skype or teamspeak. I hope u got one of these

programs on your pc!? I´ll explain you this practice wink_o.gif

Now I´m away from my computer.

Best regards,

Mr-Murray

Share this post


Link to post
Share on other sites
Quote[/b] ]I have a problem. I got this to work fine all day, but now it has stopped working? When I click on the map, no marker is appearing, and I get this error: ' k |#|DoWatch [_X,_Y,500] '

Error Type Any, expected Number

Please help me! huh.gif

I got this error when I hadn't added the Firemarker and ATarget markers on the map. The artillery wouldn't move and fire straight ahead.

Share this post


Link to post
Share on other sites

Yes, Sword. That was my problem. I may have overlooked that I deleted them at some point.

Share this post


Link to post
Share on other sites

But there are all accessories on the map. I´m sure you´ve

forgot to copy them.

Regards,

Mr-Murray

Share this post


Link to post
Share on other sites

I appear to have a locality problem. The scripts work just fine when I am the only one on my hosted map...

when 1 person connects, the scripts still work fine, but the guns fire 4 times instead of 2

with 2 people connected, (plus me), the guns fire 6 times...

I am afraid to try it with more people....

Share this post


Link to post
Share on other sites

Mr. Murray, will you please work on a version of your Airstrike script for 1.08? I don't think you know how bad people are in need of it. It would be much appreciated by many! Especially me! biggrin_o.gif

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  

×