Forum Jump :

Author Message


Posts: 16
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-02-11 09:20        
     
Is there any form to make parachutes open when jump of the plane? I need it for a second world war mod. I see some mods of statics parachutes but no one serve because they need moderns planes. Any suggestion?


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#2 Posted at 2016-02-11 09:29        
     
I used this code with a plane named JumpPlane to give that WW2 para jump feel:
{
	_unit = _x select 0;
	if (local _unit) then {
		moveOut _unit;
		sleep 0.2;
		_chute = createVehicle ["NonSteerable_Parachute_F", getPos _unit, [], 0, "CAN_COLLIDE"];
		_unit moveinDriver _chute;
	};
	sleep 0.2;
} forEach fullCrew [JumpPlane, "cargo"];

Instead of automatically opening the parachutes (which is unreliable), it creates a parachute vehicle (parachutes are vehicles in arma) and moves the unit's inside them.

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Advertisement


Author Message


Posts: 16
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2016-02-11 12:12        
     
I have to put this lines in the init of the plane or how?


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#4 Posted at 2016-02-11 12:31        
     
Here is how you can do it, make a script called para_jump.sqf in your mission folder, and put this code inside it:
{
	_unit = _x select 0;
	moveOut _unit;
	sleep 0.2;
	_chute = createVehicle ["NonSteerable_Parachute_F", getPos _unit, [], 0, "CAN_COLLIDE"];
	_unit moveinDriver _chute;
	sleep 0.2;
} forEach fullCrew [_this select 0, "cargo"];

Then put this code in the init of the plane you're using:
this addAction ["Initiate Jump", "para_jump.sqf"];

This will add an action to the plane that will make everyone in the cargo seats jump out, and it will give them parachutes after they jump. It has small time intervals so nothing collides with each other.

This post was edited by 654wak654 (2016-02-11 12:55, 615 days ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message


Posts: 16
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2016-02-11 12:57        
     
Thanks it works perfectly *THUMBS UP*