Jump to content

How to make an enemy aircraft following you ? Like an escort...


Recommended Posts

Posted

Hi guys,

 

I am trying to figure out how to do something and I am looking for hints here.

 

Let's say that you fly a Huey in the blue coalition. Then at some point in your mission, a KA-50 (in the red coalition) would follow you around for a while without attacking you.

 

I guess that for the KA-50 I could simply adjust its ROE or remove all its weapon so it would not attack you. But how could I script the KA-50 to follow you around? A little bit like an escort, but in different coalition.

 

The idea is to have an enemy unit escorting you out of their territory.

Posted

My solution would be to make the ka-50 of own coalition and then give task and waypoints as escort.

Give the 'enemy skin' so that it can be visually id as enemy for the player/client

 

But i would also like to know if there is another way of doing this for example via scripting or so.

 

Verstuurd vanaf mijn SM-G930F met Tapatalk

Posted
My solution would be to make the ka-50 of own coalition and then give task and waypoints as escort.

Give the 'enemy skin' so that it can be visually id as enemy for the player/client

 

But i would also like to know if there is another way of doing this for example via scripting or so.

 

Verstuurd vanaf mijn SM-G930F met Tapatalk

 

Yeah I thought about that one. The reason I do not like it is because many people play with the labels on. So by doing this the label would be blue, therefore identified as not dangerous at all ... completely killing the nervous mood I am trying to set it.

Posted

Understand you completely!

In my project I want a blue flight to patrol along the red border. Tensions are high but no one has started shooting yet.

(So roe are weapons hold, react to fire)

 

The effect i want is the same as you, a red flight that intercepts and escorts the blue flight until their a certain distance from the border.

 

I want the blue flight to sweat, who is that?

Is it a threat? Is it becoming a threat? Etc

 

You could force labels and .arkings F10 nap to off.

 

Verstuurd vanaf mijn SM-G930F met Tapatalk

  • Like 1
Posted
Understand you completely!

In my project I want a blue flight to patrol along the red border. Tensions are high but no one has started shooting yet.

(So roe are weapons hold, react to fire)

 

The effect i want is the same as you, a red flight that intercepts and escorts the blue flight until their a certain distance from the border.

 

I want the blue flight to sweat, who is that?

Is it a threat? Is it becoming a threat? Etc

 

You could force labels and .arkings F10 nap to off.

 

Verstuurd vanaf mijn SM-G930F met Tapatalk

 

Yep, this is exactly what I want to reproduce. An escort out of enemy territory by an enemy unit.

  • Like 1
Posted

Have you tried PERFORM TASK > FOLLOW?

Very Respectfully,

Kurt "Yoda" Kalbfleisch

San Diego, California

"In my private manual I firmly believed the only time there was too much fuel aboard any aircraft was if it was fire." --Ernest K. Gann

 

Posted
Have you tried PERFORM TASK > FOLLOW?

 

 

We've used the before to get an enemy AI to follow the human player but not engage.

Set the AI to "follow" task.

Also, set the AI to "weapons hold", which will prevent it from firing.

 

 

You can also then tell the AI at a later waypoint to go "FIRE" (i.e. weapons hot), or to disengage and fly away by turning off the Follow instruction.

On YouTube: https://www.youtube.com/philstylenz

Storm of War WW2 server website: https://stormofwar.net/

 

Posted

So i have been trying to implement the "perform task > follow" but no joy.

Keep getting script errors :(

The error defines nothing specific, just a windows box with error.

Lua Develpoment tools gives no errors either

 

I'm am new to this and have spent 3 hrs trying to get this to work.

Would appreciate any tips in the right direction :helpsmilie:

 

 

I have a mig21 on late activate with CAP and ROE: weapons hold

and a client av8b (JUMPER) coming from the south.

 

When Jumper enters the marker escort, the trigger spawns the mig21 aircraft, then loads the script as below:

 

local followTask = {

id = 'escort',

params = {

groupId = Group.getID,

pos = {x = 300, y = 0, z = 0}

}

}

 

Group.getByName('escort'):getController():pushTask(followTask)

Group.getID('JUMPER'):groupid()

 

 

Any pointers?

Thanks

Posted
you don't need to load a script at all when the MiG spawns

 

Just set an "advanced waypoint" instruction at the MiG's first (number 0) way-point to "Follow" and then select the aircraft group you want it to tag.

 

Hi Philstyle, I just test it out and you can only follow Aircraft of the same coalition.

 

If you place a blue aircraft ... than add a red aircraft and go in the advanced waypoint to set the "FOLLOW" task, you cannot select any BLUE group. They are not appearing in the drop down dialog.

Posted (edited)

@Frag

 

Wild idea:

Use a scheduler to capture your coordinates regularly, then have the enemy chopper go to those coordinates.

For instance, I'd try using this (the documentation is kind of confusing, though, it might only work with ground vehicles, but it's still worth a try)

 

Alternatively, you could create a tiny moving zone based on your helicopter, then have the enemy chopper travel towards it, by using this

Edited by Hardcard
Posted
@Frag

 

Wild idea:

Use a scheduler to capture your coordinates regularly, then have the enemy chopper go to those coordinates.

 

For instance, I'd try using this (the documentation is confusing, it might only work with ground vehicles, but it's still worth trying)

 

Alternatively, you could create a tiny moving zone based on your helicopter, then have the enemy chopper travel towards the moving zone, by using this

 

Yep thanks for the tip. I already used moose few times in some mission so I can work with this. I will try it out for sure...

Posted

Frag and Delta99 thank you for your directions and suggestions.

I am going to try it out and post back how it works out

 

Verstuurd vanaf mijn SM-G930F met Tapatalk

  • 2 weeks later...
Posted

I have had some luck doing this, and may give you a place to start

 

Setup your two units, different group names, same coalition.

For example, Red Mig21 following Red AV8B

 

Make the Follow task, ROE and so on.

Change Red AV8B to Blue coalition.

 

This has also worked with Blue helicopter "escorting" a Red ground unit.

 

It seams that the Follow/Escort task it tied to the group name and while we cannot "pick" from different coalitions while building the task, it will still work by changing the coalition of one of the units after the task is built.

 

Also it appears that as long as the group name doesn't change, the unit types can be changed after the Follow/Escort task is built.

 

I have only done this with just the ME and no scripts, I will leave trying to do this with scripts to the higher pay grades.

 

I have only done limited testing and all the disclaimers apply.

  • Thanks 1
Posted
I have had some luck doing this, and may give you a place to start

 

Setup your two units, different group names, same coalition.

For example, Red Mig21 following Red AV8B

 

Make the Follow task, ROE and so on.

Change Red AV8B to Blue coalition.

 

This has also worked with Blue helicopter "escorting" a Red ground unit.

 

It seams that the Follow/Escort task it tied to the group name and while we cannot "pick" from different coalitions while building the task, it will still work by changing the coalition of one of the units after the task is built.

 

Also it appears that as long as the group name doesn't change, the unit types can be changed after the Follow/Escort task is built.

 

I have only done this with just the ME and no scripts, I will leave trying to do this with scripts to the higher pay grades.

 

I have only done limited testing and all the disclaimers apply.

 

LOL wow if this trick works. You really made my day! I will try it out tonight for sure!

Posted

That Mig will follow you around like a puppy on a leash :) But sometimes they don't seem to get the memo about "weapon hold" you might have to fuss with that a bit.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...