WeaponComponentData

Inherits from PartComponentData

Summary

Constructors

WeaponComponentData()
WeaponComponentData(guid: Guid)
WeaponComponentData(other: PartComponentData)
WeaponComponentData(other: ComponentData)
WeaponComponentData(other: GameObjectData)
WeaponComponentData(other: GameDataContainer)
WeaponComponentData(other: DataContainer)

Properties

Name Type
projectileSpawnOffset Vec3
impulseStrength float
weaponMesh MeshAsset | nil
weaponFiring WeaponFiringData | nil
damageGiverName string
aiData GameAIWeaponData | nil
customWeaponType WeaponData | nil
classification WeaponClassification
explosionDamageMultiplier float
reloadTimeMultiplier float
damageMultiplier float
weaponItemHash int
overheatDropPerSecondMultiplier float
lockTimeMultiplier float
lockingAcceptanceAngleMultiplier float
sequentialFiring bool

Static members

Name Type
WeaponComponentData.typeInfo TypeInformation

Constructors

WeaponComponentData

WeaponComponentData()

Creates a new WeaponComponentData frostbite instance.

WeaponComponentData

WeaponComponentData(guid: Guid)

Creates a new WeaponComponentData frostbite instance and assigns it the provided Guid.

Parameters

Name Type Description
guid Guid The Guid to assign to the newly created instance.

WeaponComponentData

WeaponComponentData(other: PartComponentData)

Casts an instance of type PartComponentData to WeaponComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other PartComponentData The instance to cast to WeaponComponentData.

WeaponComponentData

WeaponComponentData(other: ComponentData)

Casts an instance of type ComponentData to WeaponComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other ComponentData The instance to cast to WeaponComponentData.

WeaponComponentData

WeaponComponentData(other: GameObjectData)

Casts an instance of type GameObjectData to WeaponComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameObjectData The instance to cast to WeaponComponentData.

WeaponComponentData

WeaponComponentData(other: GameDataContainer)

Casts an instance of type GameDataContainer to WeaponComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other GameDataContainer The instance to cast to WeaponComponentData.

WeaponComponentData

WeaponComponentData(other: DataContainer)

Casts an instance of type DataContainer to WeaponComponentData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other DataContainer The instance to cast to WeaponComponentData.

Properties

projectileSpawnOffset

Vec3

impulseStrength

float

weaponMesh

MeshAsset | nil

weaponFiring

WeaponFiringData | nil

damageGiverName

string

aiData

GameAIWeaponData | nil

customWeaponType

WeaponData | nil

classification

WeaponClassification

explosionDamageMultiplier

float

reloadTimeMultiplier

float

damageMultiplier

float

weaponItemHash

int

overheatDropPerSecondMultiplier

float

lockTimeMultiplier

float

lockingAcceptanceAngleMultiplier

float

sequentialFiring

bool

Static members

typeInfo

TypeInformation

The type information for the WeaponComponentData type.

Last modified April 26, 2020: Update frostbite type documentation (8b14351)