Jump to content
Sign in to follow this  
windo50

How to make a smoke barage and activate it with a trigger??

Recommended Posts

Hello,

My name is Jelmer

I've got a problem:

I'm making a scenario that involves a helicopter landing with smoke cover.

My plan was: That a chopper would fly over a trigger and then the trigger start's a smoke artillery barage targeting the LZ for cover

The problem is i can't find any information about this scenario.

can somebody help me????:confused::confused:

Share this post


Link to post
Share on other sites

Use:

smoke = "ARTY_SmokeShellWhite" createVehicle getMarkerPos "smokeHere";

---------- Post added at 03:09 PM ---------- Previous post was at 02:20 PM ----------

Here's a demo mission showing how this might work.

Share this post


Link to post
Share on other sites
Use:

smoke = "ARTY_SmokeShellWhite" createVehicle getMarkerPos "smokeHere";

heres i script ive beeen working on for an arty barrage

(_this select 0) removeAction (_this select 2);

{_x removeAction actionName} forEach allUnits;

{_x removeAction actionName} forEach allDead;

{_x removeAction actionName} forEach vehicles;

_one_who_used_action = _this select 1;

_id_of_action = _this select 2;

_one_who_used_action removeAction _id_of_action;

hint "Take cover, Arty's on the way in. Marked white";

motar fire "M252";

waitUntil sleep 1.5;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke" select 0),( getmarkerPos "smoke" select 1), 150];

M119c fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_WP" createVehicle [(getmarkerPos "burn" select 0),( getmarkerPos "burn" select 1), 2500];

waitUntil sleep 0.5;

M119c fire "M119";

waitUntil sleep 0.5;

M119b fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_WP" createVehicle [(getmarkerPos "burn2" select 0),( getmarkerPos "burn2" select 1), 2500];

waitUntil sleep 0.5;

M119D fire "M119";

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn3" select 0),( getmarkerPos "burn3" select 1), 2500];

waitUntil sleep 0.5;

M119c fire "M119";

waitUntil sleep 0.5;

M119d fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn4" select 0),( getmarkerPos "burn4" select 1), 2500];

waitUntil sleep 0.5;

M119b fire "M119";

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn5" select 0),( getmarkerPos "burn5" select 1), 2500];

waitUntil sleep 0.5;

M119b fire "M119";

waitUntil sleep 0.5;

M119c fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_WP" createVehicle [(getmarkerPos "burn6" select 0),( getmarkerPos "burn6" select 1), 2500];

waitUntil sleep 0.5;

M119A fire "M119";

waitUntil sleep 0.5;

M119d fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn7" select 0),( getmarkerPos "burn7" select 1), 2500];

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

M119b fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn8" select 0),( getmarkerPos "burn8" select 1), 2500];

waitUntil sleep 0.5;

M119c fire "M119";

waitUntil sleep 0.5;

M119d fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "burn9" select 0),( getmarkerPos "burn9" select 1), 2500];

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

M119D fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_WP" createVehicle [(getmarkerPos "wp2" select 0),( getmarkerPos "wp2" select 1), 2500];

waitUntil sleep 0.5;

M119B fire "M119";

waitUntil sleep 0.5;

M119C fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_Wp" createVehicle [(getmarkerPos "wp" select 0),( getmarkerPos "wp" select 1), 2500];

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

M119D fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_Wp" createVehicle [(getmarkerPos "wp1" select 0),( getmarkerPos "wp1" select 1), 2500];

waitUntil sleep 0.5;

M119B fire "M119";

waitUntil sleep 0.5;

M119C fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "MISS" select 0),( getmarkerPos "MISS" select 1), 2500];

waitUntil sleep 0.5;

M119a fire "M119";

waitUntil sleep 0.5;

M119D fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_Wp" createVehicle [(getmarkerPos "MISS2" select 0),( getmarkerPos "MISS2" select 1), 2500];

waitUntil sleep 0.5;

M119D fire "M119";

waitUntil sleep 0.5;

M119A fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "MISS3" select 0),( getmarkerPos "MISS3" select 1), 2500];

waitUntil sleep 0.5;

M119B fire "M119";

waitUntil sleep 0.5;

M119C fire "M119";

waitUntil sleep 0.5;

bomb = "ARTY_Sh_105_HE" createVehicle [(getmarkerPos "MISS4" select 0),( getmarkerPos "MISS4" select 1), 2500];

(_this select 0) removeAction (_this select 2);

{_x removeAction actionName} forEach allUnits;

{_x removeAction actionName} forEach allDead;

{_x removeAction actionName} forEach vehicles;

_one_who_used_action = _this select 1;

_id_of_action = _this select 2;

_one_who_used_action removeAction _id_of_action;

ive got the arty firing it from ships, i think its a good lil script

any way ive edited it into one for u (this one use smoke grenades, rather than smoke shells, you can allways change the classlist name of the shell to what ever you want

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke" select 0),( getmarkerPos "smoke" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke1" select 0),( getmarkerPos "smoke1" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke2" select 0),( getmarkerPos "smoke2" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke3" select 0),( getmarkerPos "smoke3" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke4" select 0),( getmarkerPos "smoke4" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke5" select 0),( getmarkerPos "smoke5" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke6" select 0),( getmarkerPos "smoke6" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke7" select 0),( getmarkerPos "smoke7" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke8" select 0),( getmarkerPos "smoke8" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke9" select 0),( getmarkerPos "smoke9" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke10" select 0),( getmarkerPos "smoke10" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke11" select 0),( getmarkerPos "smoke11" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke12" select 0),( getmarkerPos "smoke12" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke13" select 0),( getmarkerPos "smoke13" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke14" select 0),( getmarkerPos "smoke14" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke15" select 0),( getmarkerPos "smoke15" select 1), 100];

waitUntil sleep 1;

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke16" select 0),( getmarkerPos "smoke16" select 1), 100];

all you have to do is make markers and NAME them smoke1 smoke2 etc, as many as u want, ive got 16 there hahaha

what you need to do is:

set a trigger to fire this off as an external script

OR

copy the above script into the onact condition of the trigger

OR

have it in the init for a waypoint of your chopper

if you want to change colour of the smoke shells just type the colour after the word smoke eg.

bomb = "SmokeShellGREEN" createVehicle [(getmarkerPos "smoke16" select 0),( getmarkerPos "smoke16" select 1), 100];

to change the drop hight just change the 100 eg.

bomb = "SmokeShell" createVehicle [(getmarkerPos "smoke16" select 0),( getmarkerPos "smoke16" select 1), 20000];

to change the time delay between the creation of the smoke shells eg.

waitUntil sleep 60; (thats 60 seconds)

the script works and is realy effective

once youve made and named the markers just place them where you want them, a big circle, a random arty spread, a line its up 2 u

hope it works

Share this post


Link to post
Share on other sites

Not sure how replacing 1 line of code and 5 markers with 111 lines of code, 4 preplaced and named units, actions and 20 some markers is an improvement, but as long as you're learning it's all good. :)

Share this post


Link to post
Share on other sites

hahaha cheers mate, im learning slowly, just thought i should share my leraning, might be a long way but it seems to work for me, the only issue im having is with the add action trigger thing, but thats on another thread lol

Share this post


Link to post
Share on other sites

Is the intention of your script to let one unit call in 4x HE and 4x WP however many times per mission?

Share this post


Link to post
Share on other sites

just once, the script works its a trgger problem, would you be intrested on meeting me on my ts chanel so we can talk through this rather than posting on threads?

Share this post


Link to post
Share on other sites

it's working,

special thanks to Kylania for the awesome demo mission.

and thank you everybody for all the help

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  

×