WeaponEntry¶
Members¶
Member |
Description |
---|---|
The list of weapon tags, such as |
|
Methods¶
Method |
Description |
---|---|
Instantiates an imposter object of the weapon prefab. |
|
Details¶
-
class
WeaponEntry
¶ -
-
const bool
isUsableByAi
¶
-
const string
name
¶
-
const GameObject
prefab
¶
-
const WeaponSlot
slot
¶
The list of weapon tags, such as
Assault
,Marksman
etc.
-
const LoadoutType
type
¶
-
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
()¶
-
const bool