WeaponEntry
Members
Member |
Description |
|---|---|
The main weapon role generated from the weapon’s stats |
|
The list of weapon tags, such as |
|
Methods
Method |
Description |
|---|---|
Returns true if the weapon entry has the tag (case insensitive) |
|
Instantiates an imposter object of the weapon prefab. |
|
Details
-
class WeaponEntry
-
-
const bool isUsableByAi
-
const WeaponRole mainWeaponRole
The main weapon role generated from the weapon’s stats
-
const string name
-
const GameObject prefab
-
const WeaponSlot slot
-
const array<string> tags
The list of weapon tags, such as
Assault,Marksmanetc.
-
const LoadoutType type
-
bool HasTag(string tag)
Returns true if the weapon entry has the tag (case insensitive)
-
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
Weaponcomponent culled. If the weapon doesn’t have a third person transform, this function will fail and return nil.
-
string ToString()
-
const bool isUsableByAi