Author Topic: How does "$Target Priority" work?  (Read 1524 times)

0 Members and 1 Guest are viewing this topic.

Offline wistler

  • 28
How does "$Target Priority" work?
Hi guys,
I'm looking for a little clarity as to how the $Target Priority works in the ship.tbl.

What kind of entries are allowed?  Can I make a list such as "Destroyer" "Cruiser" etc or is it a little bit more complicated?

P.S at work at the moment so I cant try it out for myself so thought best to just ask  :)

  

Offline Fury

  • The Curmudgeon
  • 213
Re: How does "$Target Priority" work?
You mean $Target Priority Group? Take a look at objecttypes.tbl. http://www.hard-light.net/wiki/index.php/Objecttypes.tbl

You should look at mods such as Blue Planet 2 for examples how it is used. Other mods like Wings of Dawn and Diaspora likely use them as well, though I have not confirmed it.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How does "$Target Priority" work?
It's a really, really useful feature.

 

Offline wistler

  • 28
Re: How does "$Target Priority" work?
Looks good. I'm trying to design a mission which involves Cap ships and multiple stations, and I wanted to stop the cap ship from firing on the stations without them being guarded. I was thinking of changing the target priorities for that capital ship so it would target other capital ships & fighters instead. Would this be the best way of doing it or is there a better resolution?

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: How does "$Target Priority" work?
Aside from just using ship-protect?

 

Offline wistler

  • 28
Re: How does "$Target Priority" work?
Yeah because I still need the stations to be open to attack from other ships. Ill play around  with target priorities and object types and see where I get. Thanks for the replies.