Arma Reforger Script API
|
Public Member Functions | |
proto external BaseCompartmentSlot | GetCompartmentSlot () |
proto external bool | GetCanAimOnlyInADS () |
Returns true if we can only aim in ADS. | |
proto external bool | IsFreeLookEnabled () |
Returns true if the free look is enabled. | |
proto external bool | IsWeaponADS () |
Returns true if the weapon is in ADS. | |
proto external void | SetWeaponADS (bool val) |
Request weapon ADS state. | |
proto external bool | GetWeaponADSInput () |
Returns weapon ADS input state. | |
proto external void | SetWeaponADSInput (bool val) |
Request weapon ADS input state. | |
proto external ETurretReloadState | GetReloadingState () |
proto external float | GetADSTime () |
Returns the time to ADS in seconds. | |
proto external BaseSightsComponent | GetCurrentSights () |
proto external bool | GetCurrentSightsADS () |
proto external void | SetCurrentSightsADS (bool on) |
Set if we are currently in ADS. | |
proto bool | GetCurrentSightsCameraTransform (out vector outWorldMatrix[4], out float fov) |
Returns true if current turret is valid and has some sights data, outputs world sights transformation and FOV. | |
proto bool | GetCurrentSightsCameraLocalTransform (out vector outLocalMatrix[4], out float fov) |
Returns true if current turret is valid and has some sights data, outputs local sights transformation and FOV. | |
proto external bool | AssembleTurret () |
proto external bool | DisassembleTurret () |
proto external TurretComponent | GetTurretComponent () |
proto external BaseWeaponManagerComponent | GetWeaponManager () |
proto external InventoryStorageManagerComponent | GetInventoryManager () |
proto external bool | SelectWeapon (IEntity user, BaseWeaponComponent newWeapon) |
Select the new weapon specified in parameter. | |
proto external float | GetReloadDuration () |
proto external float | GetReloadTime () |
proto external bool | DoReloadWeaponWith (IEntity ammunitionEntity) |
proto external void | SetFireWeaponWanted (bool val) |
Set if turret is firing or not. | |
proto external void | SetAimingAngles (float yaw, float pitch) |
Set aiming angles in radians. | |
proto external bool | GetIsOverridden () |
proto external void | SetOverride (IEntity pUser, bool bOverride) |
proto external string | GetUniqueName () |
proto external void | SetWeaponInputState (ETurretWeaponInputState state) |
Used to remotely trigger weapon actions on the turret. | |
Public Member Functions inherited from BaseControllerComponent | |
proto external IEntity | GetOwner () |
Returns the entity owner of the component. | |
proto external bool | CanMove () |
Returns state of movement capacity. | |
proto external void | SetCanMove (bool canMove) |
Changes state of movement capacity. Internally verifies if all necessary conditions are met. | |
bool | ValidateCanMove () |
Public Member Functions inherited from GameComponent | |
bool | OnTicksOnRemoteProxy () |
proto external bool TurretControllerComponent.AssembleTurret | ( | ) |
proto external bool TurretControllerComponent.DisassembleTurret | ( | ) |
proto external bool TurretControllerComponent.DoReloadWeaponWith | ( | IEntity | ammunitionEntity | ) |
proto external float TurretControllerComponent.GetADSTime | ( | ) |
Returns the time to ADS in seconds.
proto external bool TurretControllerComponent.GetCanAimOnlyInADS | ( | ) |
Returns true if we can only aim in ADS.
proto external BaseCompartmentSlot TurretControllerComponent.GetCompartmentSlot | ( | ) |
proto external BaseSightsComponent TurretControllerComponent.GetCurrentSights | ( | ) |
proto external bool TurretControllerComponent.GetCurrentSightsADS | ( | ) |
proto bool TurretControllerComponent.GetCurrentSightsCameraLocalTransform | ( | out vector | outLocalMatrix[4], |
out float | fov | ||
) |
Returns true if current turret is valid and has some sights data, outputs local sights transformation and FOV.
proto bool TurretControllerComponent.GetCurrentSightsCameraTransform | ( | out vector | outWorldMatrix[4], |
out float | fov | ||
) |
Returns true if current turret is valid and has some sights data, outputs world sights transformation and FOV.
proto external InventoryStorageManagerComponent TurretControllerComponent.GetInventoryManager | ( | ) |
proto external bool TurretControllerComponent.GetIsOverridden | ( | ) |
proto external float TurretControllerComponent.GetReloadDuration | ( | ) |
proto external ETurretReloadState TurretControllerComponent.GetReloadingState | ( | ) |
proto external float TurretControllerComponent.GetReloadTime | ( | ) |
proto external TurretComponent TurretControllerComponent.GetTurretComponent | ( | ) |
proto external string TurretControllerComponent.GetUniqueName | ( | ) |
proto external bool TurretControllerComponent.GetWeaponADSInput | ( | ) |
Returns weapon ADS input state.
proto external BaseWeaponManagerComponent TurretControllerComponent.GetWeaponManager | ( | ) |
proto external bool TurretControllerComponent.IsFreeLookEnabled | ( | ) |
Returns true if the free look is enabled.
proto external bool TurretControllerComponent.IsWeaponADS | ( | ) |
Returns true if the weapon is in ADS.
proto external bool TurretControllerComponent.SelectWeapon | ( | IEntity | user, |
BaseWeaponComponent | newWeapon | ||
) |
Select the new weapon specified in parameter.
user | The user will select the weapon. |
newWeapon | The new weapon that will be selected. |
proto external void TurretControllerComponent.SetAimingAngles | ( | float | yaw, |
float | pitch | ||
) |
Set aiming angles in radians.
IMPORTANT* Only works locally. Used mainly for cinematic
proto external void TurretControllerComponent.SetCurrentSightsADS | ( | bool | on | ) |
Set if we are currently in ADS.
on | True if we are ADS otherwise false. |
proto external void TurretControllerComponent.SetFireWeaponWanted | ( | bool | val | ) |
Set if turret is firing or not.
proto external void TurretControllerComponent.SetOverride | ( | IEntity | pUser, |
bool | bOverride | ||
) |
proto external void TurretControllerComponent.SetWeaponADS | ( | bool | val | ) |
Request weapon ADS state.
proto external void TurretControllerComponent.SetWeaponADSInput | ( | bool | val | ) |
Request weapon ADS input state.
proto external void TurretControllerComponent.SetWeaponInputState | ( | ETurretWeaponInputState | state | ) |
Used to remotely trigger weapon actions on the turret.
Note that the turret must be overridden for this to have any effect