Karmafied

Allowing Heli Pilots to Eject

9 posts in this topic

Has anyone discovered a way/script/code that allows Helicopter Pilots to eject from a helo in midflight?  As it stands right now, only passengers can eject if they have a parachute, correct?

Edited by Karmafied
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
class CfgPatches
{
class helli_eject
{
units[]=
{
"O_Ka60_F",
"C_M900_F",
"B_MH9_F",
"B_AH9_F",
"B_RH9_F"
};
weapons[]={};
requiredVersion=0.1;
requiredAddons[]=
{
"A3_Air_F"
};
};
};
class CfgVehicles
{
class Helicopter;
class Helicopter_Base_F;
class Helicopter_Base_H;
class Ka60_Base_F: Helicopter_Base_H
{
cargoCanEject=1;
driverCanEject=1;
};
class MH9_Base_F: Helicopter_Base_H
{
driverCanEject=1;
cargoCanEject=1;
};
};

Try adding this code to the top of you're mpmissions\Exile.Altis\config.cpp.

You may need to un pbo you're Exile.Altis.pbo to get access to config.cpp.

Original Code Here

Good luck

Dave

 

Edited by CreativeSamura
Typos, and link to original code

Share this post


Link to post
Share on other sites

Hi Dave,

No such Luck. I am wondering if I need to download that Mod you linked first? I tried it with just the code you provided but to no avail. Thanks for chiming in, though. :)

Share this post


Link to post
Share on other sites

In order for something to work via cfgPatches it has to be loaded when the server starts via a PBO.  It cannot be included in the mission file.  It would be better to write something at the script level where you allow players to use an addAction, or better yet press a key, in order to eject.  You could also have it give the player a parachute upon ejection as well.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.