Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow vehicles to retain target on move command #1299

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Starkku
Copy link
Contributor

@Starkku Starkku commented Jul 7, 2024

Retain target on movement command

  • It is now possible for vehicles to retain their target when issued movement command by setting KeepTargetOnMove to true.
    • Note that no check is done whether or not the vehicle or the weapon can actually fire while moving, this is on modder's discretion.
    • The target is automatically reset if the vehicle moves beyond the weapon's range from the target.
  • KeepTargetOnMove.ExtraDistance can be used to modify the distance considered 'out of range' from target (it is added to weapon range), negative values work to reduce the distance.

In rulesmd.ini:

[SOMEVEHICLE]                     ; VehicleType
KeepTargetOnMove=false            ; boolean
KeepTargetOnMove.ExtraDistance=0  ; floating point value, distance in cells

Copy link

github-actions bot commented Jul 7, 2024

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant