User Tools

Site Tools


api:comp_soldier

COMP_SOLDIER

Category: Component

Parent class: COMPONENT

Lazy-init

Functions


removeWeapon

void removeWeapon()


getWeapon

CompWeapon getWeapon()


setWeapon

void setWeapon(assetWeapon)

Name Type Description
assetWeapon WEAPON

getStrength

integer getStrength()


computeStrength

void computeStrength()


getSoldierRank

integer getSoldierRank()


getSoldierState

SOLDIER_TRAINING_STATE getSoldierState()


getSoldierStatus

SOLDIER_STATUS getSoldierStatus()


isAvailable

boolean isAvailable()

Events


ON_SOLDIER_STATUS_CHANGED

ON_SOLDIER_STATUS_CHANGED(SOLDIER_STATUS)


ON_TRAINING_CHANGED

ON_TRAINING_CHANGED()


ON_WEAPON_CHANGED

ON_WEAPON_CHANGED()


ON_STRENGTH_UPDATED

ON_STRENGTH_UPDATED()

api/comp_soldier.txt · Last modified: 2022/12/02 14:09 (external edit)