Module SLOT_SCRIPT_INTERFACE

Extensions to the game's settlement slot object.

Functions

GetMemoryAddress () Returns the memory address of the slot object as a hexadecimal string.
GetBuildingRotation () Gets the building model rotation on the campaign map (0..5, representing 60-degree increments).
SetBuildingRotation (rotation) Sets the building model rotation on the campaign map (0..5, representing 60-degree increments).
Refresh () Forces an immediate visual refresh of settlement building models on the campaign map.


Functions

GetMemoryAddress ()
Returns the memory address of the slot object as a hexadecimal string.

Returns:

    string memory address (e.g. "0x12345678")
GetBuildingRotation ()
Gets the building model rotation on the campaign map (0..5, representing 60-degree increments).

Returns:

    integer rotation index (0..5)
SetBuildingRotation (rotation)
Sets the building model rotation on the campaign map (0..5, representing 60-degree increments). Persisted across save/load. Call twdll.campaign_ui.RefreshSettlements() or slot:Refresh() to apply visual changes on the campaign map.

Parameters:

  • rotation integer new rotation index (0..5)
Refresh ()
Forces an immediate visual refresh of settlement building models on the campaign map.
generated by LDoc 1.5.0