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

Public Member Functions

proto external BaseSightsComponent GetSights ()
 
proto external bool HasMoveableBase ()
 
proto external PointInfo GetCameraAttachmentSlot ()
 
proto external bool IsVehicleMounted ()
 
proto external float GetBaseRotation ()
 
proto external void SetBaseRotation (float fRotation)
 
proto external vector GetAimingAngleExcess (vector tgtPosWorld)
 Calculates aiming angle to target and returns horizontal and vertical excess of target angle compared to aiming limits, in degrees.
 
proto external void SetSights (int index)
 
proto external int NextSights ()
 
proto external void SwitchNextSights ()
 
proto external void SwitchPrevSights ()
 
proto external bool IsUsingWeaponSights ()
 
- Public Member Functions inherited from AimingComponent
proto external vector GetInitAiming ()
 Get the init rotation defined in the prefab in degrees.
 
proto external void SetAimingRotationWanted (vector inRotation)
 Set the desired aiming rotation.
 
proto external void SetAimingRotation (vector inRotation)
 Set the current aiming rotation.
 
proto external vector GetAimingRotationWanted ()
 Get the current desired aiming rotation in degrees.
 
proto external vector GetAimingRotation ()
 Get the current aiming rotation in degress.
 
proto external vector GetAimingDirection ()
 Get the current aiming direction in local space.
 
proto external vector GetAimingDirectionWorld ()
 Get the current aiming direction in world space.
 
proto external vector GetAimingRotationModification ()
 
proto external vector GetModifiedAimingTranslation ()
 
proto external vector GetCurrentRecoilTranslation ()
 
proto void GetAimingLimits (out vector limitsHoriz, out vector limitsVert)
 Get the current aiming limits.
 
proto external vector GetRawAimingTranslation ()
 Returns the aiming translation prior to any transformations in weapon model space (1 = 1 m).
 
proto external vector GetRawAimingRotation ()
 Returns the aiming rotation in weapon model space.
 
- Public Member Functions inherited from BaseAimingComponent
proto external IEntity GetOwner ()
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Member Function Documentation

◆ GetAimingAngleExcess()

proto external vector TurretComponent.GetAimingAngleExcess ( vector  tgtPosWorld)

Calculates aiming angle to target and returns horizontal and vertical excess of target angle compared to aiming limits, in degrees.

outExcess[0] - horizontal excess outExcess[1] - vertical excess Example: Limits = -10...10. TgtAngle = 12. Excess = 2. Limits = -10...10. TgtAngle = -13. Excess = -3. Limits = -10...10. TgtAngle = 9. Excess = 0.

◆ GetBaseRotation()

proto external float TurretComponent.GetBaseRotation ( )

◆ GetCameraAttachmentSlot()

proto external PointInfo TurretComponent.GetCameraAttachmentSlot ( )

◆ GetSights()

proto external BaseSightsComponent TurretComponent.GetSights ( )

◆ HasMoveableBase()

proto external bool TurretComponent.HasMoveableBase ( )

◆ IsUsingWeaponSights()

proto external bool TurretComponent.IsUsingWeaponSights ( )

◆ IsVehicleMounted()

proto external bool TurretComponent.IsVehicleMounted ( )

◆ NextSights()

proto external int TurretComponent.NextSights ( )

◆ SetBaseRotation()

proto external void TurretComponent.SetBaseRotation ( float  fRotation)

◆ SetSights()

proto external void TurretComponent.SetSights ( int  index)

◆ SwitchNextSights()

proto external void TurretComponent.SwitchNextSights ( )

◆ SwitchPrevSights()

proto external void TurretComponent.SwitchPrevSights ( )

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