Goldline 0 Posted June 14, 2007 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
W0lle 1052 Posted June 14, 2007 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
whisper 0 Posted June 14, 2007 <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 Share this post Link to post Share on other sites
mr.peanut 1 Posted June 14, 2007 The BAS_f framework also has a component for this, I believe. Share this post Link to post Share on other sites
RaymondLu 0 Posted June 15, 2007 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. Share this post Link to post Share on other sites
fer 21 Posted June 15, 2007 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. Share this post Link to post Share on other sites