Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,757
Reply with quote  #1 
Paradrop Script
Download:  Paradrop Script

Here is a simple script that will allow you to do paradrops in your missions:

1. Create a group and place group1=group this this in the squad leader's initialization line.

2. put a plane down with two waypoints, on the first waypoint put this in the on act line:
nul = [group1] execVM "groupEject.sqf";


3.Create a script and name it:
groupEject.sqf

put the following code into the script:
if (isServer) then 
{
_grp = _this select 0;

sleep (random 3);

{
unassignVehicle (_x); 
(_x) action ["EJECT", vehicle _x];
sleep 0.4;
} foreach units _grp;
};


4. move the script to your mission folder.

5. Repeat step 2 for multiple planes.

__________________
0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 456
Reply with quote  #2 
Here is another paradrop script that drops AI units into the battle as soon as the script is called either from a trigger or a radio call
Download: Para

para.sqf
// script by moerderhoschi (spezialauftagmaessig gebaut fuer burns)//
/////////////////////////////////////////////////////////////////////

private["_counter","_unit","_para","_plane","_xgrp1"];

_counter = _this select 0;
_plane = _this select 1;

_xgrp1 = creategroup east;

for [{_x=1},{_x<=_counter},{sleep 0.3 + (random 0.4); _x=_x+1}] do {

_para = "ParachuteWest" createvehicle [50,50,50];
_para setpos (_plane modeltoworld [-5,0,-2.5]);
_unit = _xgrp1 createUnit ["LIB_SOV_rifleman", [50,50,50], [], 0, "FORM"];
_unit allowfleeing 0;
_unit moveindriver _para;

};


call
0 = [10,taxi1] execVM "para.sqf";


10 is the number of AI that are parachuted and taxi1 is the name of a plane

0
Terry

Private
Registered:
Posts: 14
Reply with quote  #3 
A few qustions regarding groupEject: when I type in "group1=Group iI get a error saying "Invalid number in Expression". But it Works when I type group=group1 ,would this also work?
And *I have placed a Squad on the map,should the plane be gouped to this Squad,or syncrhonized? All I get when started is half a Group on the ground where I placed them,and the plane flying over without letting out para's.....

And the last script(para.sqf),can't get that to work either....the script should spawn a Squad and a plane,correct? Cause I made a trigger With 0 = [10,taxi1] execVM "para.sqf"; written "On Act." line in the trigger,but nothing happens. The triggers do activate(used a hint line to check).
In both cases I had the functions module placed on the map as well.

Any ideas?
0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 456
Reply with quote  #4 
Terry I think in the leaders init line it should actually be:-

Group1 = group this;


But this script is not really suitable for Ironfront without a bit more work as we dont really have a transport plane.

The second script needs you to place a plane in the editor and call it taxi1, basically when the plane flys over a trigger a squad is created in paracutes at the position of the plane I think.
0
Terry

Private
Registered:
Posts: 14
Reply with quote  #5 
Ok I see the issue Tayuk. Got the last one to work,I'll try some more With the first one and see how it pans out.
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,757
Reply with quote  #6 
Scripts from 1st post, and 2nd post are now hosted on the MR, i had created both scripts through Armaedit.
Paradrop Script (1st post)
Para
(2nd post)

Both posts are updated with links to download scripts as well.


__________________
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.