Lt_Damage 0 Posted November 7, 2002 I have a cutscene in a coop where I chopper flys in, it starts to have major engine problems and the pilot has to put it down. However as it starts to lose power I'd like to switch control to the player so he has to put it down somewhere. I was wondering what is the best way of swappin the AI out of the pilot seat and putting a nominated Player Pilot in? I tried setPos'n the pilot out, then DeleteVehicle'n him. However that works great but I then cannot move my player into the pilot seat.. Any help much appreciated. Regards, Share this post Link to post Share on other sites
Azz -GUN- 0 Posted November 7, 2002 PilotSwitch.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> titleCut["","BLACK OUT",2] wPilot action ["EJECT",myChopper] aP action ["EJECT",myChopper] _Chute = vehicle aP deleteVehicle _Chute _Chute = vehicle wPilot deleteVehicle _Chute wPilot setPos [0,0,0] aP setPos [0,0,0] ap moveinDriver myChopper titleCut["","BLACK IN",2] <span id='postcolor'> Works for me. note at start i used a empty chopper and had a AI Pilot move in driver dont know if that made a difference or not though. Share this post Link to post Share on other sites
Azz -GUN- 0 Posted November 7, 2002 Thats quite cool actually cause you can have a little camera work with the chopper showing it take off or something and start to fly then switch over so your flying it. Groovy. Share this post Link to post Share on other sites
Lt_Damage 0 Posted November 7, 2002 Exactly, I'll test your script however it looks similar to what I tried. However I suck at scripting so theres a good chance yours will work. Cheers Azz, Share this post Link to post Share on other sites
Azz -GUN- 0 Posted November 7, 2002 np. it worked for me so it should work for you. and if you put a 1 second gap after the ejects the chopper engine will be dying. from when the first guy jumped but as it is now it stays airborne Share this post Link to post Share on other sites
Lt_Damage 0 Posted November 7, 2002 Suicide from OFPEC just suggested using UnAssignvehicle Unit for the chopper pilot before I eject him, that way OFP will let another pilot in the hotseat.. Share this post Link to post Share on other sites
Azz -GUN- 0 Posted November 7, 2002 from what i seen the problem lies when you eject your player but this script definately worked fine for me. dont know if it did for you or not. Share this post Link to post Share on other sites