api:comp_soldier
Table of Contents
COMP_SOLDIER
Functions
removeWeapon
setAssetWeapon
void setAssetWeapon(assetWeapon [, refundCurrentWeapon])
getWeaponTrainingPurpose
INTERACTIVE_LOCATION_PURPOSE getWeaponTrainingPurpose()
getAssetWeapon
WEAPON getAssetWeapon()
getStrength
integer_and_unsigned_integer getStrength()
integer_and_unsigned_integer getStrength(favoredWeaponMultiplier)
Name | Type | Description |
---|---|---|
favoredWeaponMultiplier | float |
getPotentialStrength
integer_and_unsigned_integer getPotentialStrength()
getSoldierRank
integer_and_unsigned_integer getSoldierRank()
getSoldierState
SOLDIER_TRAINING_STATE getSoldierState()
SOLDIER_TRAINING_STATE getSoldierState(trainingValue)
Name | Type | Description |
---|---|---|
trainingValue | float |
Events
ON_TRAINING_CHANGED
ON_STRENGTH_CHANGED
ON_STRENGTH_CHANGED(integer_and_unsigned_integer previousStrength, integer_and_unsigned_integer currentStrength)
ON_WEAPON_CHANGED
ON_WOUNDED_CHANGED
ON_WOUNDED_CHANGED(boolean isWounded)
api/comp_soldier.txt · Last modified: 2025/04/30 14:21 by 127.0.0.1