SoldierWeaponsComponent

Inherits from Component

Summary

Properties

Name Type
isZooming bool
currentWeapon SoldierWeapon
weapons SoldierWeapon[]
currentWeaponSlot WeaponSlot

Methods

Method Returns
EquipWeapon(weaponSlot: WeaponSlot, weaponUnlockAsset: DataContainer, unlockAssets: DataContainer{}) void
UnequipWeapon(weaponSlot: WeaponSlot) void

Static members

Name Type
SoldierWeaponsComponent.typeInfo TypeInformation

Properties

isZooming

bool

currentWeapon

SoldierWeapon

weapons

SoldierWeapon[]

currentWeaponSlot

WeaponSlot

Methods

EquipWeapon

EquipWeapon(weaponSlot: WeaponSlot, weaponUnlockAsset: DataContainer, unlockAssets: DataContainer{})

Parameters

Name Type Description
weaponSlot WeaponSlot
weaponUnlockAsset DataContainer
unlockAssets DataContainer{}

UnequipWeapon

UnequipWeapon(weaponSlot: WeaponSlot)

Parameters

Name Type Description
weaponSlot WeaponSlot

Static members

typeInfo

TypeInformation

Last modified March 12, 2023: update changelog 19985 (8dd1685e)