CoconutCockpit Posted May 7, 2021 Posted May 7, 2021 (edited) I have an AI aircraft waiting on the runway, ready to take off. However, it should wait until a unit is in its zone before it's allowed to actually take off. Is there something in the Advanced Waypoint Options to do this? I could delay its take off time, but there's no real way of knowing when the unit will arrive. Failing any other options, I guess I could do the ol' switcharoo and get rid of the first plane that's waiting and spawn a new one when the unit is in the zone. Edited May 7, 2021 by applepiefrost adding tags Coconut Cockpit Instagram
cfrag Posted May 7, 2021 Posted May 7, 2021 Set the Unit to 'uncontrolled' and add a Triggered Action (right of the waypoints and loadouts) that of type 'Command' and choose "start". Then, when your unit is in the trigger zone, have it issue an AI Task Push of that Triggered Action. Your Unit will activate. 2
Exorcet Posted May 7, 2021 Posted May 7, 2021 38 minutes ago, cfrag said: Set the Unit to 'uncontrolled' and add a Triggered Action (right of the waypoints and loadouts) that of type 'Command' and choose "start". Then, when your unit is in the trigger zone, have it issue an AI Task Push of that Triggered Action. Your Unit will activate. This will change the mission though. It sounds like applepiefrost has aircraft on the runway. Using uncontrolled means they would have to move to parking and take extra time taxing to runway. Instead of uncontrolled, check "Late Activation". Then in the trigger menu set a flag to activate when the unit is in zone: Once > Unit Inside Zone > Flag 1 on Then another trigger Once > Flag 1 on > Activate group (runway group) 1 Awaiting: DCS F-15C Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files
CoconutCockpit Posted May 7, 2021 Author Posted May 7, 2021 2 hours ago, Exorcet said: Instead of uncontrolled, check "Late Activation". Then in the trigger menu set a flag to activate when the unit is in zone: Once > Unit Inside Zone > Flag 1 on Then another trigger Once > Flag 1 on > Activate group (runway group) This is what I tried first, but the problem is that until the aircraft gets activated, it's invisible and then pops into existence when it gets activated. I would like the aircraft to be there with engines running, and take off when the other unit gets close to it. 2 hours ago, cfrag said: Set the Unit to 'uncontrolled' and add a Triggered Action (right of the waypoints and loadouts) that of type 'Command' and choose "start". Then, when your unit is in the trigger zone, have it issue an AI Task Push of that Triggered Action. Your Unit will activate. Yes, this is a solution but what @Exocet mentioned is true. The scenario is a "GET TO THE PLANE AND GET OUT OF HERE ASAP!". Waiting for an entire startup procedure kinda takes away from that Coconut Cockpit Instagram
Exorcet Posted May 7, 2021 Posted May 7, 2021 In that case you can try a trick where you let the plane start up at the beginning of the mission, but have a ground unit like a truck block off the final taxiway to the runway. The plane will try to taxi but should be stopped by the truck. Then when the unit enters the zone, make the trigger deactivate the blocking truck. The plane will continue to taxi and takeoff. Also the AI doesn't use fuel while stopped on the ground so that won't be an issue. 2 1 Awaiting: DCS F-15C Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files
Baaz Posted May 7, 2021 Posted May 7, 2021 Since he's looking for maximum realism here, I would suggest giving the truck a waypoint with a "hold" command at the initial position. Then instead of simply disappearing, the truck simply moves out of the way when the initiator (unit entering zone) trips the trigger. 1
CoconutCockpit Posted May 7, 2021 Author Posted May 7, 2021 19 minutes ago, Exorcet said: In that case you can try a trick where you let the plane start up at the beginning of the mission, but have a ground unit like a truck block off the final taxiway to the runway. The plane will try to taxi but should be stopped by the truck. Then when the unit enters the zone, make the trigger deactivate the blocking truck. The plane will continue to taxi and takeoff. Also the AI doesn't use fuel while stopped on the ground so that won't be an issue. 1 minute ago, Baaz said: Since he's looking for maximum realism here, I would suggest giving the truck a waypoint with a "hold" command at the initial position. Then instead of simply disappearing, the truck simply moves out of the way when the initiator (unit entering zone) trips the trigger. Ah, good ideas, hadn't really thought about doing that. Thanks guys! Coconut Cockpit Instagram
CoconutCockpit Posted May 8, 2021 Author Posted May 8, 2021 8 hours ago, Exocet said: @applepiefrost, are you called me ? I did? 11 hours ago, Baaz said: Since he's looking for maximum realism here, I would suggest giving the truck a waypoint with a "hold" command at the initial position. Then instead of simply disappearing, the truck simply moves out of the way when the initiator (unit entering zone) trips the trigger. Is there something special I need to do to get the unit to move? He seems very happy to just stay where he is, even though a trigger sets his task to move to waypoint 1. I send a message to all groups, so I know the trigger actually fires. Coconut Cockpit Instagram
Exorcet Posted May 8, 2021 Posted May 8, 2021 Instead of move to waypoint 1, use a Stop Condition for the Hold. Most like "Is User Flag" with the flag number for unit in zone and check so it turns off when the flag is true. Awaiting: DCS F-15C Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files
arcuspilot Posted December 15, 2021 Posted December 15, 2021 Guys, what an elegant solution - thank you! I wanted almost exactly the same scenario. I used a fuelling truck in front of a jet parked hot on a ramp. Now it looks like he's been refuelled, got the go ahead and, as the truck rolls off, the jet taxis for take-off. It's neat, it's thematic and... immersive! Very grateful indeed
YbuQc Posted August 21, 2022 Posted August 21, 2022 I really like the solution, but it's a shame that it can't be done through scripting. I tried to use the InitAIOff, but even with that, the plane is still taking off. Well, blocking truck it is.
YbuQc Posted August 28, 2022 Posted August 28, 2022 If anyone is still looking for an answer, go and check this video: No more need for a truck ! 1
Phantom711 Posted August 18, 2023 Posted August 18, 2023 (edited) I have to bring this up again. I just got into building missions and I find it pretty hard to find up to date information. In the video above, the guy checks a box, that says "Uncontrolled". this box imply does not exist on my AI aircraft menu. Also in a different video tutorial someone used a "Hold" command as an advanced waypoint option in order for the unit to stop what it is doing until a trigger (Flag) is executed. That Hold command doesn`t exist either. WTF? EDIT: Ok...fun fact: The "UNCONTROLLED" checkbox only appears if you select "take off from ramp". NOT from parking lot. Edited August 18, 2023 by Phantom711 vCVW-17 is looking for Hornet and Tomcat pilots and RIOs. Join the vCVW-17 Discord.
Recommended Posts