User Tools

Site Tools


api:comp_soldier

COMP_SOLDIER

Category: Component

Parent class: COMPONENT

Lazy-init

Functions


removeWeapon

void removeWeapon([refundCurrentWeapon])

Name Type Description
refundCurrentWeapon boolean

setAssetWeapon

void setAssetWeapon(assetWeapon [, refundCurrentWeapon])

Name Type Description
assetWeapon WEAPON
refundCurrentWeapon boolean

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_TRAINING_CHANGED(float previousTrainingValue, float currentTrainingValue)


ON_STRENGTH_CHANGED

ON_STRENGTH_CHANGED(integer_and_unsigned_integer previousStrength, integer_and_unsigned_integer currentStrength)


ON_WEAPON_CHANGED

ON_WEAPON_CHANGED(WEAPON previousWeapon, WEAPON currentWeapon)


ON_WOUNDED_CHANGED

ON_WOUNDED_CHANGED(boolean isWounded)

api/comp_soldier.txt · Last modified: 2025/04/30 14:21 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki