Arma Reforger Script API
|
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 () |
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.
proto external float TurretComponent.GetBaseRotation | ( | ) |
proto external PointInfo TurretComponent.GetCameraAttachmentSlot | ( | ) |
proto external BaseSightsComponent TurretComponent.GetSights | ( | ) |
proto external bool TurretComponent.HasMoveableBase | ( | ) |
proto external bool TurretComponent.IsUsingWeaponSights | ( | ) |
proto external bool TurretComponent.IsVehicleMounted | ( | ) |
proto external int TurretComponent.NextSights | ( | ) |
proto external void TurretComponent.SetBaseRotation | ( | float | fRotation | ) |
proto external void TurretComponent.SetSights | ( | int | index | ) |
proto external void TurretComponent.SwitchNextSights | ( | ) |
proto external void TurretComponent.SwitchPrevSights | ( | ) |