Module twdll_unit

Functions for interacting with campaign units.

Functions

SetStrength (value) Sets the current unit strength (soldier count).
SetMaxStrength (value) Sets the maximum unit strength (soldier capacity).
SetMovementPoints (value) Sets the remaining movement points for the unit.
GetStrength () Gets the current unit strength (soldier count).
GetMaxStrength () Gets the maximum unit strength (soldier capacity).
GetMovementPoints () Gets the remaining movement points for the unit.
GetMemoryAddress () Returns the memory address of the real unit object as a hexadecimal string.


Functions

SetStrength (value)
Sets the current unit strength (soldier count).

Parameters:

  • value integer new current strength
SetMaxStrength (value)
Sets the maximum unit strength (soldier capacity).

Parameters:

  • value integer new maximum strength
SetMovementPoints (value)
Sets the remaining movement points for the unit.

Parameters:

  • value integer new movement points
GetStrength ()
Gets the current unit strength (soldier count).

Returns:

    integer current strength
GetMaxStrength ()
Gets the maximum unit strength (soldier capacity).

Returns:

    integer maximum strength
GetMovementPoints ()
Gets the remaining movement points for the unit.

Returns:

    integer movement points
GetMemoryAddress ()
Returns the memory address of the real unit object as a hexadecimal string.

Returns:

    string memory address (e.g. "0x12345678")
generated by LDoc 1.5.0 Last updated 2025-10-05 16:07:51