franze 196 Posted January 29, 2002 I don't know if this has been answered before, but I've spent at least two hours looking around for one simple thing: how do you make, say, two Cobras guard a couple Blackhawks or transport helicopter (or simply put a "Follow" waypoint on the unit to be defended) until the helicopter drops its cargo off (or until a trigger has been reached). Also, what scripting might be used to make the mission fail if the/these transport helicopters are destroyed? Share this post Link to post Share on other sites
Rastavovich 0 Posted January 30, 2002 The mission fail thing is easy, just make a trigger with the concition: not(alive Blackhawkname). For escorting the Blackhawks you could group all helicopters. So they will use the same WPs or you could give them similar waypoints with the cobra behavoir "combat". Share this post Link to post Share on other sites
Dragon 4 0 Posted January 30, 2002 When grouping choppers, they behave like complete idiots! They fly for ab. 2-300 mtrs and then the (in this case) Cobras would turn to get in formation. And its annoying as hell coz I'm trying the same!! Share this post Link to post Share on other sites
Rastavovich 0 Posted January 30, 2002 Well, then there is only the hard way: give every helicopter its own WPs. That's a lot of work to make that looking nice. Or you write a "follow the leader"-script. Share this post Link to post Share on other sites
Intruder 0 Posted January 30, 2002 Just a thought, you could try to make a GUARD WP for the cobras directly on top of the transport helo in the editor (if its directly on top of the helo, that WP should move with the helo), then make a second WP somewhere else. In the condition field of that GUARD WP type something like escort_done And for the transport helos Transport Unoad WP, in the actvation field type: escort_done=true that way when the transport helo unloads cargo (or whatever) the cobra's in theory should move a way to the second WP. Share this post Link to post Share on other sites
Dragon 4 0 Posted January 30, 2002 oR.. HRMM.... try this: set all the choppers on a line, place the WP's like this:(CH is the blackhawk, the CH2 and 3 are Cobras) CH----O---O CH2---O---O CH3---O---O Place one trigger, GROUP the trigger with CH(1), place the trigger over the second WP (the middel O) with a radius 20-30 (as desired) set the settings for the trigger "Vehicle, In Area" (do not type anything in the ExpAct or Cond). errrr... I'm not thinking clear now, but try to synchronize the trigger with the two waypoints of the Cobras. I'm not sure if this is what I'm thinking of, but you should get the idea if you just try it sometimes. Make sure the Cobras are closer to the wps than the blackhawk. So in mymind, the cobras will wait for the blackhawk until the blackhawk arrives in the trigger.... any1 understand? Henning Share this post Link to post Share on other sites
mahuja 12 Posted January 30, 2002 1) Make blackhawk slow 2) Make every cobra waypoint (twice the length between) synced with blackhawk waypoints Creative use of the synchronization Not really... Share this post Link to post Share on other sites
franze 196 Posted January 30, 2002 "Just a thought, you could try to make a GUARD WP for the cobras directly on top of the transport helo in the editor (if its directly on top of the helo, that WP should move with the helo), then make a second WP somewhere else. In the condition field of that GUARD WP type something like escort_done And for the transport helos Transport Unoad WP, in the actvation field type: escort_done=true that way when the transport helo unloads cargo (or whatever) the cobra's in theory should move a way to the second WP." Thats essentially what I had in mind, but what would be the full lines of code you would put into the waypoint scripting box, if any? Share this post Link to post Share on other sites
Intruder 0 Posted January 31, 2002 In the guard* WP for the cobras: Condition field: escort_done In the WP** for the transport helo (the WP or position reached by the transport helo when you want the cobras to stop guarding): Activation field: escort_done=true *Doesn't have to be a guard WP, experiment with others **It can be activated by a trigger if you wish. Simple as that. This way the cobras should in theory follow the guard WP (which follows the transport helo around), and they will not move to their next WP til the command escort_done=true is given, in theory Share this post Link to post Share on other sites
franze 196 Posted January 31, 2002 Although, will it work if the human player is the leader of the cobra flight? I can't seem to get the waypoint to follow the Blackhawk around, so I'm guessing there might be a simple way to make a waypoint follow a specific unit around...? Share this post Link to post Share on other sites
Intruder 0 Posted February 1, 2002 Hmmmmmm are you any good at scripting? If so maybe you could use one of these scripts: http://www.ofpeditingcenter.com/coding.shtml Follow script Scroll down a bit to find the script. It was designed for ground vehicles but may be you could work around it? Dynamic WP's There are some scripts here which allow dynamic wp positioning. Share this post Link to post Share on other sites