Skip to content

Allow giveOrder to specify dockpoints for ORDER_DOCK - #7755

Draft
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:feature/giveorder-dockpoints
Draft

Allow giveOrder to specify dockpoints for ORDER_DOCK#7755
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:feature/giveorder-dockpoints

Conversation

@Goober5000

@Goober5000 Goober5000 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

The giveOrder scripting function now accepts optional DockerPoint and DockeePoint arguments for ORDER_DOCK, each given as a dockpoint name or one-based index (matching the setDocked convention). DockerPoint refers to a dockpoint on the ordering ship and DockeePoint to one on the target.

If only one point is specified, a compatible point is chosen automatically on the other ship using the same dock-type precedence as the existing automatic dockpoint negotiation. When neither is specified, behavior is unchanged.

Fixes #7119. In draft pending testing

The giveOrder scripting function now accepts optional DockerPoint and
DockeePoint arguments for ORDER_DOCK, each given as a dockpoint name or
one-based index (matching the setDocked convention).  DockerPoint refers
to a dockpoint on the ordering ship and DockeePoint to one on the target.

If only one point is specified, a compatible point is chosen automatically
on the other ship using the same dock-type precedence as the existing
automatic dockpoint negotiation.  When neither is specified, behavior is
unchanged.

Fixes scp-fs2open#7119

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting labels Aug 29, 2026
@Goober5000
Goober5000 marked this pull request as draft August 29, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Add way to specific dockpoints for giveOrder script function

1 participant