WeaponEntry

Members

Member

Description

distance

isUsableByAi

name

prefab

prefabWeapon

slot

tags

The list of weapon tags, such as Assault, Marksman etc.

type

uiSprite

Methods

Method

Description

InstantiateImposter(position, rotation)

Instantiates an imposter object of the weapon prefab.

ToString()

Details

class WeaponEntry
const Distance distance
const bool isUsableByAi
const string name
const GameObject prefab
const Weapon prefabWeapon
const WeaponSlot slot
const array<string> tags

The list of weapon tags, such as Assault, Marksman etc.

const LoadoutType type
const Sprite uiSprite
GameObject InstantiateImposter(Vector3 position, Quaternion rotation)

Instantiates an imposter object of the weapon prefab. The imposter object contains the third person transform of the weapon prefab, and has its Weapon component culled. If the weapon doesn’t have a third person transform, this function will fail and return nil.

string ToString()