Jump to content
Sign in to follow this  
commander jao

Artillery question but not the normal kind

Recommended Posts

is there a way to cause an Artillery strike to land on an area but caused by a trigger.

what i want to do is have a helicopter take off and moments after have Artillery fall on the position they just took off from.

how would i do this?

regards

Share this post


Link to post
Share on other sites

variation on a theme?...

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

assuming you want this to happen the first time helicopter has moved in the mission...

you need some mortars, an artillery module and a script to make them fire

+a trigger with condition: if speed of chopper is greater than zero

then trigger will activate, script is called and the artillery will target its position

here's an example mission

http://thelaw.dns-systems.net/testheloarty.zip

simple enough but the problem you will have is the flight time of the rounds, chopper could be long gone before impact... so you might prefer to spawn some bombs in the air just above the chopper instead. sorry can't really help with that approach.

hope it helps, Sam

Edited by Ashram 1-1

Share this post


Link to post
Share on other sites

You could try putting this in the activation area of a trigger using blufor notpresent (presuming heli is blufor).

null1 = [] spawn{ if (!isserver) exitWith {}; for [{_i=0}, {_i<11}, {_i=_i+1}] do  {    Smoke1="ARTY_Sh_81_HE"  createVehicle [(getpos t1 select 0)+ random 150 - 75, (getpos t1 select 1)+ random 150 - 75, (getpos t1 select 2)+ 20];    sleep random 2;    };  };

Not tested in MP but should be ok. It uses 81mm mortar rounds.

t1 is the name of an object that designates the centre of the barrage.

{_i<11}, the 11 is how many rounds.

150 - 75 Sets the radius, currently 75 m

sleep random 2; sets how long between rounds. Currently 0-2 seconds.

Share this post


Link to post
Share on other sites

what is Smoke1?

runs perfect!!

Edited by Monsada

Share this post


Link to post
Share on other sites

Could anyone explain to me please how I can set the angle of spawned" rockets. I need to have a barrage of MLRS rockets fire over the head of the palyer but I dont seem to be able to specify the direction in which the fire.

null1 = [] spawn{ if (!isserver) exitWith {}; for [{_i=0}, {_i<11}, {_i=_i+1}] do  {    Smoke1="MLRS"  createVehicle [(getpos t1 select 0)+ random 150 - 75, (getpos t1 select 1)+ random 150 - 75, (getpos t1 select 2)+ 20];    sleep random 2;    };  };

t1 is the name of an object that designates the centre of the barrage.

{_i<11}, the 11 is how many rounds.

150 - 75 Sets the radius, currently 75 m

sleep random 2; sets how long between rounds. Currently 0-2 seconds.

Thanks in advance

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  

×