Jump to content
Sign in to follow this  
Goldline

Only allowing pilots to fly airctafts?

Recommended Posts

Hi,

Was wondering how you can make it so that you only allow pilots to fly aircrafts on certain maps?

Share this post


Link to post
Share on other sites

Moved as this question has nothing to do with troubleshooting.

Please make sure you post in the right topic before you are posting.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{

_x addEventHandler ["GET IN", {unassignVehicle (_this select 2)}];

} forEach ([0, 0, 0] nearObjects ["Air", 20000]);in init.sqf.

May have funny results on mission starting with soldier in parachute, though tounge2.gif

Share this post


Link to post
Share on other sites

hi Goldline, you can try this

in the aircraft's init field, type

this addEventHandler["GETIN",{if(typeOf (_this select 2) != "SoldierWPilot")then{_this select 2 action["eject",_this select 0]}}]

only west side pilot can fly it , if you want to limit it to east pilot, change "SoldierWPilot" to "SoldierEPilot"

i haven't try this script ,but it should work.

biggrin_o.gif

Share this post


Link to post
Share on other sites
The BAS_f framework also has a component for this, I believe.

@ Goldline - As Mr.Peanut points out, BAS f has two components which you might want to use:

a) Restricted Crew Check - Only specific units are allowed to fly specific aircraft (so you can not only restrict it to pilots, but which pilot can fly which aircraft).

b) Restricted Crew Type Check - Only units of the type 'Pilot' can fly aircraft (but it doesn't matter which unit, or which aircraft).

There's a link to the BAS f thread in my sig, where you can find out where to download copy of the most recent version (v0-0-31 Beta). Manual is available in English and Russian.

smile_o.gif

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  

×