Skip to content

Forcescript - get all objects from a sector#582

Merged
luciusDXL merged 2 commits intoluciusDXL:masterfrom
jerethk:scripting_objects5
Feb 10, 2026
Merged

Forcescript - get all objects from a sector#582
luciusDXL merged 2 commits intoluciusDXL:masterfrom
jerethk:scripting_objects5

Conversation

@jerethk
Copy link
Contributor

@jerethk jerethk commented Oct 30, 2025

A couple new FS functions

  • get all objects from a sector
  • get the player's sector

ScriptObject functions need to know about the ScriptSector type, and ScriptSector functions need to know about the ScriptObject type
To resolve this issue, I've split off ScriptObject::registerFunctions() from ScriptObject::registerType()
registerType() is called before ScriptSector.registerType(), and registerFunctions() is called afterwards

@jerethk jerethk marked this pull request as draft October 30, 2025 06:21
ScriptObject.registerFunctions() has been split off from registerType()
This is so that ScriptObject.registerType() can be called before ScriptSector.registerType() and ScriptObject.registerFunctions() can be called afterwards
ScriptSector functions need to know about the ScriptObject type and vice versa
@jerethk jerethk force-pushed the scripting_objects5 branch from 4aa30b5 to 4dda229 Compare January 24, 2026 11:42
@jerethk jerethk marked this pull request as ready for review January 26, 2026 01:59
@luciusDXL luciusDXL merged commit efcc51f into luciusDXL:master Feb 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants