Module UNIT_SCRIPT_INTERFACE

Extensions to the game's unit object.

Functions

GetMemoryAddress () Returns the memory address of the unit object as a hexadecimal string.
GetNumMen () Gets the current number of men in the unit.
SetNumMen (value) Sets the current number of men in the unit.
GetMaxNumMen () Gets the maximum number of men the unit can have.
SetMaxNumMen (value) Sets the maximum number of men the unit can have.
GetActionPoints () Gets the action points remaining for the unit.
SetActionPoints (value) Sets the action points for the unit.


Functions

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

Returns:

    string memory address (e.g. "0x12345678")
GetNumMen ()
Gets the current number of men in the unit.

Returns:

    integer current number of men
SetNumMen (value)
Sets the current number of men in the unit.

Parameters:

  • value integer new number of men
GetMaxNumMen ()
Gets the maximum number of men the unit can have.

Returns:

    integer maximum number of men
SetMaxNumMen (value)
Sets the maximum number of men the unit can have.

Parameters:

  • value integer new maximum number of men
GetActionPoints ()
Gets the action points remaining for the unit.

Returns:

    integer action points
SetActionPoints (value)
Sets the action points for the unit.

Parameters:

  • value integer new action points
generated by LDoc 1.5.0