Jump to content
Sign in to follow this  
mr burns

Katjusha random fire mission

Recommended Posts

A simple code snippet (provided by moerderhoschi :)) to make BM-13 fire a salvo of missiles into some direction.

Great for usage in intros, screenshots, or simply for ambience in your mission.

0 = [] spawn {sleep 1;grad1 dowatch [(getpos grad1 select 0) + 500,(getpos grad1 select 1)+500,500];sleep 3;for [{_x=1},{_x<10},{sleep 1;_x=_x+1}] do {grad1 fire currentweapon grad1}};

Copy code to a triggers onActivation field.

grad1 is the name of the vehicle you wanna see firing (works with any kind of vehicle, not only mlrs)

Since it was originally intended for use with BM-21 it´ll try to fire 10 times, BM-13 doesn´t need that as it fires all rockets in one salvo.

If you are more confident with this stuff, you can remove the 10x firing sequence by messing with the _x<10 part. Honestly i don´t care as it still works w/o errors.

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  

×