Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: wistler on February 19, 2014, 05:52:40 am

Title: How does "$Target Priority" work?
Post by: wistler on February 19, 2014, 05:52:40 am
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  :)
Title: Re: How does "$Target Priority" work?
Post by: Fury on February 19, 2014, 05:59:23 am
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.
Title: Re: How does "$Target Priority" work?
Post by: General Battuta on February 19, 2014, 10:38:13 am
It's a really, really useful feature.
Title: Re: How does "$Target Priority" work?
Post by: wistler on February 19, 2014, 03:29:23 pm
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?
Title: Re: How does "$Target Priority" work?
Post by: General Battuta on February 19, 2014, 03:30:28 pm
Aside from just using ship-protect?
Title: Re: How does "$Target Priority" work?
Post by: wistler on February 20, 2014, 08:37:35 am
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.