Author Topic: Can an enemy ship flee a flight  (Read 2939 times)

0 Members and 1 Guest are viewing this topic.

Offline origin

  • 27
Can an enemy ship flee a flight
Is there a way to have an enemy ship flee a fight?  I have tried several methods and none seem to work properly.

I am trying to have a trigger of something like: hits-left is <50 then run away.  I don't want the ship to warp out I want it to flee.  If I use evade the ship doesn't acutally leave.  If I use go to a waypoint it only goes if I stop shooting at it.

I am basically tying to get an enemy in the thick of battle to run away.

Any ideas?

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Can an enemy ship flee a flight
Give it a triggered ai-waypoint order when it's health falls below whatever you want it to.
 
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: Can an enemy ship flee a flight
He tried that, but as he said, the enemy will follow his waypoints only if left alone.

I suggest trying No Dynamic Goals in the wing editor. It will likely make them easier targets, but there's no pain in trying.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline Sushi

  • Art Critic
  • 211
Re: Can an enemy ship flee a flight
He tried that, but as he said, the enemy will follow his waypoints only if left alone.

I suggest trying No Dynamic Goals in the wing editor. It will likely make them easier targets, but there's no pain in trying.

There isn't any way to toggle dynamic goals in FRED, is there?

Also, maybe instead of a waypoint, you could give them an invisible target a long way away to attack so that they use their afterburners? As far as I know, the AI never uses afterburners when doing waypoints. (BTW, would that be a generally useful feature to have (AI using afterburners for waypoints)? It should be easy to implement, the tougher questions are how to toggle/control that behavior since it probably isn't wanted all the time).

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Can an enemy ship flee a flight
Could the AB use be tied to a new SEXP?

 

Offline origin

  • 27
Re: Can an enemy ship flee a flight
He tried that, but as he said, the enemy will follow his waypoints only if left alone.

I suggest trying No Dynamic Goals in the wing editor. It will likely make them easier targets, but there's no pain in trying.

There isn't any way to toggle dynamic goals in FRED, is there?

Also, maybe instead of a waypoint, you could give them an invisible target a long way away to attack so that they use their afterburners? As far as I know, the AI never uses afterburners when doing waypoints. (BTW, would that be a generally useful feature to have (AI using afterburners for waypoints)? It should be easy to implement, the tougher questions are how to toggle/control that behavior since it probably isn't wanted all the time).

Thats a good idea - didn't think of that one, Ill give it a try.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: Can an enemy ship flee a flight
Quote
There isn't any way to toggle dynamic goals in FRED, is there?

Not to my knowledge. I once tried to find that, but not very recently, so the SCP may have implemented it since then.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline origin

  • 27
Re: Can an enemy ship flee a flight
Hot dam it works!  thanks sushi.

I put a fighter about 5000 clicks away and checked hidden from sensors

hits left < 50
Ai-chase

And off he goes even if I am chasing him shooting at him - he even does some dodging but stays on course fleeing. ;)

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Can an enemy ship flee a flight
When I was on Tolwyns original wing commander mod team I managed to Fred the mission from wing commander 4 where an enemy thunderbolt flees back to its base ship. 
 
And I did it all with retail SEXPs.
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Can an enemy ship flee a flight
You could also try the waypoint thing with order priority over 100.   Should force the ship to ignore all other goals. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Can an enemy ship flee a flight
Problem is, ships don't use afterburners when following waypoints.  The distant attack method is probably your best bet for now, but you may want to have many of these in different directions, so all your fleeing ships don't all go in the same direction.  One additional possibility is to try to make the distant targets stealthy as well... otherwise they'll show up as the flashy blips on your radar... though a direct attack order may not work on stealthy ships.
The Trivial Psychic Strikes Again!

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Can an enemy ship flee a flight
It should work, stealth doesn't matter for AI.