Modding, Mission Design, and Coding > The Modding Workshop

Forcing capships to keep distance?

(1/5) > >>

Zarax:
Hello,

is there any way to create an AI capital behaviour where while attacking they will keep a minimum distance from the target?

Thank you!

Colonol Dekker:
I think there's a Sexp for that in the events editor.

Zarax:
AI-keep-distance is greyed out if you're thinking about that one.

wookieejedi:

--- Quote from: Zarax on November 09, 2023, 02:52:29 am ---Hello,

is there any way to create an AI capital behavior where while attacking, they will keep a minimum distance from the target?

Thank you!

--- End quote ---

Do you want the a capital ship to reach a certain distance and position relative to it's target, then stop and rotate to bring guns to bear? Then if the target moves do you want the capital ship to dynamically maintain that position relative to it's target?

If so, I might recommend trying these custom sexps:
https://www.hard-light.net/forums/index.php?topic=96082.0

Zarax:

--- Quote from: wookieejedi on November 09, 2023, 06:44:49 am ---
--- Quote from: Zarax on November 09, 2023, 02:52:29 am ---Hello,

is there any way to create an AI capital behavior where while attacking, they will keep a minimum distance from the target?

Thank you!

--- End quote ---

Do you want the a capital ship to reach a certain distance and position relative to it's target, then stop and rotate to bring guns to bear? Then if the target moves do you want the capital ship to dynamically maintain that position relative to it's target?

If so, I might recommend trying these custom sexps:
https://www.hard-light.net/forums/index.php?topic=96082.0

--- End quote ---

Yes, that's specifically the behaviour I'm looking for.
Thank you, I shall study those sexps and see how I can make them work.

Navigation

[0] Message Index

[#] Next page

Go to full version