Skip to content

Expose new Max Guard Range to scripting#7451

Open
wookieejedi wants to merge 1 commit into
scp-fs2open:masterfrom
wookieejedi:new_max_guard-to-script
Open

Expose new Max Guard Range to scripting#7451
wookieejedi wants to merge 1 commit into
scp-fs2open:masterfrom
wookieejedi:new_max_guard-to-script

Conversation

@wookieejedi
Copy link
Copy Markdown
Member

Follow-up to #7251, which added set-guard-range
This PR exposes that value to scripting, so scripters do not have to use the more expensive runSEXP to use it.

The value is initialized as -1 (max_guard_radius = -1.0f; line 7913 in ship.cpp), hence the default value for the script is -1.

Follow-up to scp-fs2open#7251, which added `set-guard-range`
This PR exposes that value to scripting, so scripters do not have to use the more expensive `runSEXP` to use it.

The value is initialized as -1 (`max_guard_radius = -1.0f;` line 7913 in ship.cpp), hence the default value for the script is -1.
@wookieejedi wookieejedi added this to the Release 26.0 milestone May 12, 2026
@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. ai A feature or issue related to the AI algorithms scripting A feature or issue related to LUA scripting labels May 12, 2026
Copy link
Copy Markdown
Contributor

@MjnMixael MjnMixael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward virtvar

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

Labels

ai A feature or issue related to the AI algorithms 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.

2 participants