Page 1 of 1

attack my target at maximum firing range

Posted: Mon, 13. Sep 21, 09:55
by iniochos
Good morning,
I do not know if there has been such a request in the past, I do know that this issue is known to all of us, the following request to create an order to your wingmen.

My request is:
"attack my target at maximum firing range"

Re: attack my target at maximum firing range

Posted: Fri, 17. Sep 21, 21:22
by j.harshaw
you could just pass in $ship.maxcombatrange.all to param 'minrange' of order Attack. make sure that 'maxrange' is higher. try it out. i'd expect the ship will move a lot with such a narrow margin. also, it'll only work with capital ships at the moment. fighter movement is controlled in code and scripts mostly control which flight behaviors to use and when.

Re: attack my target at maximum firing range

Posted: Fri, 17. Sep 21, 22:37
by Shuulo
j.harshaw wrote:
Fri, 17. Sep 21, 21:22
you could just pass in $ship.maxcombatrange.all to param 'minrange' of order Attack. make sure that 'maxrange' is higher. try it out. i'd expect the ship will move a lot with such a narrow margin. also, it'll only work with capital ships at the moment. fighter movement is controlled in code and scripts mostly control which flight behaviors to use and when.
Hm, interesting you mentioned fighters are controlled in script, is it possible in any way to make make fighter go slower than max speed when they are doing attack run on capital ship?
Also, I though of making different script for fighters if they have "bomber" type, but if thats controlled in code I will not be able to change this?

Re: attack my target at maximum firing range

Posted: Sat, 18. Sep 21, 11:47
by iniochos
Thanks for your response.
The point is, I don't have the capabilities/knowledge to do such alterations. :(

If anyone of you has the necessary abilities/knowledge and is willing to...

...please do...