Module twdll_battle_unit
Battle unit properties for Rome 2.
Functions
| GetChargeBonus (battle_unit) | Gets the charge bonus of the battle unit. |
| GetMeleeAttack (battle_unit) | Gets the melee attack of the battle unit. |
| GetBaseMorale (battle_unit) | Gets the base morale of the battle unit. |
| GetSomeFloatValue (battle_unit) | Gets a float value of the battle unit. |
| GetMemoryAddress (battle_unit) | Returns the memory address of the real battle unit object. |
Functions
- GetChargeBonus (battle_unit)
-
Gets the charge bonus of the battle unit.
Parameters:
- battle_unit userdata the battle unit object (first argument)
Returns:
-
number
charge bonus
- GetMeleeAttack (battle_unit)
-
Gets the melee attack of the battle unit.
Parameters:
- battle_unit userdata the battle unit object (first argument)
Returns:
-
number
melee attack
- GetBaseMorale (battle_unit)
-
Gets the base morale of the battle unit.
Parameters:
- battle_unit userdata the battle unit object (first argument)
Returns:
-
number
base morale
- GetSomeFloatValue (battle_unit)
-
Gets a float value of the battle unit.
Parameters:
- battle_unit userdata the battle unit object (first argument)
Returns:
-
number
float value
- GetMemoryAddress (battle_unit)
-
Returns the memory address of the real battle unit object.
Parameters:
- battle_unit userdata the battle unit object (first argument)
Returns:
-
string
memory address (e.g. "0x12345678")