Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TurretControllerComponent Interface Reference
Inheritance diagram for TurretControllerComponent:
[legend]

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 ()
 

Member Function Documentation

◆ AssembleTurret()

proto external bool TurretControllerComponent.AssembleTurret ( )

◆ DisassembleTurret()

proto external bool TurretControllerComponent.DisassembleTurret ( )

◆ DoReloadWeaponWith()

proto external bool TurretControllerComponent.DoReloadWeaponWith ( IEntity  ammunitionEntity)

◆ GetADSTime()

proto external float TurretControllerComponent.GetADSTime ( )

Returns the time to ADS in seconds.

◆ GetCanAimOnlyInADS()

proto external bool TurretControllerComponent.GetCanAimOnlyInADS ( )

Returns true if we can only aim in ADS.

◆ GetCompartmentSlot()

proto external BaseCompartmentSlot TurretControllerComponent.GetCompartmentSlot ( )

◆ GetCurrentSights()

proto external BaseSightsComponent TurretControllerComponent.GetCurrentSights ( )

◆ GetCurrentSightsADS()

proto external bool TurretControllerComponent.GetCurrentSightsADS ( )

◆ GetCurrentSightsCameraLocalTransform()

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.

◆ GetCurrentSightsCameraTransform()

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.

◆ GetInventoryManager()

proto external InventoryStorageManagerComponent TurretControllerComponent.GetInventoryManager ( )

◆ GetIsOverridden()

proto external bool TurretControllerComponent.GetIsOverridden ( )

◆ GetReloadDuration()

proto external float TurretControllerComponent.GetReloadDuration ( )

◆ GetReloadingState()

proto external ETurretReloadState TurretControllerComponent.GetReloadingState ( )

◆ GetReloadTime()

proto external float TurretControllerComponent.GetReloadTime ( )

◆ GetTurretComponent()

proto external TurretComponent TurretControllerComponent.GetTurretComponent ( )

◆ GetUniqueName()

proto external string TurretControllerComponent.GetUniqueName ( )

◆ GetWeaponADSInput()

proto external bool TurretControllerComponent.GetWeaponADSInput ( )

Returns weapon ADS input state.

◆ GetWeaponManager()

proto external BaseWeaponManagerComponent TurretControllerComponent.GetWeaponManager ( )

◆ IsFreeLookEnabled()

proto external bool TurretControllerComponent.IsFreeLookEnabled ( )

Returns true if the free look is enabled.

◆ IsWeaponADS()

proto external bool TurretControllerComponent.IsWeaponADS ( )

Returns true if the weapon is in ADS.

◆ SelectWeapon()

proto external bool TurretControllerComponent.SelectWeapon ( IEntity  user,
BaseWeaponComponent  newWeapon 
)

Select the new weapon specified in parameter.

Parameters
userThe user will select the weapon.
newWeaponThe new weapon that will be selected.
Returns
Returns true if the selection has happened.

◆ SetAimingAngles()

proto external void TurretControllerComponent.SetAimingAngles ( float  yaw,
float  pitch 
)

Set aiming angles in radians.

IMPORTANT* Only works locally. Used mainly for cinematic

◆ SetCurrentSightsADS()

proto external void TurretControllerComponent.SetCurrentSightsADS ( bool  on)

Set if we are currently in ADS.

Parameters
onTrue if we are ADS otherwise false.

◆ SetFireWeaponWanted()

proto external void TurretControllerComponent.SetFireWeaponWanted ( bool  val)

Set if turret is firing or not.

◆ SetOverride()

proto external void TurretControllerComponent.SetOverride ( IEntity  pUser,
bool  bOverride 
)

◆ SetWeaponADS()

proto external void TurretControllerComponent.SetWeaponADS ( bool  val)

Request weapon ADS state.

◆ SetWeaponADSInput()

proto external void TurretControllerComponent.SetWeaponADSInput ( bool  val)

Request weapon ADS input state.

◆ SetWeaponInputState()

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


The documentation for this interface was generated from the following file: