McSpuds 10 Posted September 21, 2010 I am trying to create a "Search and Rescue" mission for a downed pilot. If possible I would like to have team members see the pilot eject. How can I force a AI pilot to eject from the aircraft? I have been setting the damage level to almost max to get a good smoke trail for the bird mut can not seam to get pilot to eject. Share this post Link to post Share on other sites
twirly 11 Posted September 21, 2010 Try this...... _pilot = driver _plane; UnAssignVehicle _pilot; _pilot action ["EJECT", _plane]; Share this post Link to post Share on other sites
McSpuds 10 Posted September 21, 2010 Thanxs, that did it. I placed a empty aircraft on the runway and named it "plane1". I then created the pilot named "pilot1" and placed him next to the aircraft. I made the first pilot waypoint a "HOLD" and then the next one a "GET IN NEAREST" I placed both these wp's on the aircraft nose. Then ran out way points to get aircraft to mission area. I set a trigger in the mission area synced to the "Hold" waypoint and set as a "switch". This way when the trigger gets activated the "Hold" waypoint is deleted and the pilot gets in the aircraft and takes off. I then set the eject trigger with the code below added in the on act: , then placed the trigger were I wanted the pilot to eject. Worked great! Here is the code with names changed: pilot1 = driver plane1; UnAssignVehicle pilot1; pilot1 action ["EJECT", plane1]; :bounce3::bounce3: ---------- Post added at 09:58 AM ---------- Previous post was at 09:57 AM ---------- Now I need to go search for commands to get the pilot to join search team when they arrive at his location.. Share this post Link to post Share on other sites
kylania 546 Posted September 21, 2010 If it's a downed pilot mission, why are you starting the pilot outside of the vehicle and making him board the plane? Is the player actually going to see that happen? See him take off, then be told he crashed and they need to get him? Why not just start the plane crashed somewhere then spawn the pilot at the location. As for joining the search team there's a few different methods available for that. Share this post Link to post Share on other sites
Lexen 10 Posted September 21, 2010 McSpuds is always trying to be difficult. ;) (it's okay, we're in the same gaming guild) Share this post Link to post Share on other sites