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

Public Member Functions

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

◆ GetAimingDirection()

proto external vector AimingComponent.GetAimingDirection ( )

Get the current aiming direction in local space.

◆ GetAimingDirectionWorld()

proto external vector AimingComponent.GetAimingDirectionWorld ( )

Get the current aiming direction in world space.

◆ GetAimingLimits()

proto void AimingComponent.GetAimingLimits ( out vector  limitsHoriz,
out vector  limitsVert 
)

Get the current aiming limits.

Parameters
limitsHorizReturn the horizontal limits
limitsVertReturn the vertical limits

◆ GetAimingRotation()

proto external vector AimingComponent.GetAimingRotation ( )

Get the current aiming rotation in degress.

◆ GetAimingRotationModification()

proto external vector AimingComponent.GetAimingRotationModification ( )

◆ GetAimingRotationWanted()

proto external vector AimingComponent.GetAimingRotationWanted ( )

Get the current desired aiming rotation in degrees.

◆ GetCurrentRecoilTranslation()

proto external vector AimingComponent.GetCurrentRecoilTranslation ( )

◆ GetInitAiming()

proto external vector AimingComponent.GetInitAiming ( )

Get the init rotation defined in the prefab in degrees.

◆ GetModifiedAimingTranslation()

proto external vector AimingComponent.GetModifiedAimingTranslation ( )

◆ GetRawAimingRotation()

proto external vector AimingComponent.GetRawAimingRotation ( )

Returns the aiming rotation in weapon model space.

(1 = 1 rad).

x: +yaw, -yaw y: +pitch, -pitch z: +roll, -roll

◆ GetRawAimingTranslation()

proto external vector AimingComponent.GetRawAimingTranslation ( )

Returns the aiming translation prior to any transformations in weapon model space (1 = 1 m).

x: +right, -left y: +up, -down z: +front, -back

◆ SetAimingRotation()

proto external void AimingComponent.SetAimingRotation ( vector  inRotation)

Set the current aiming rotation.

Parameters
inRotationThe rotation wanted in radians

◆ SetAimingRotationWanted()

proto external void AimingComponent.SetAimingRotationWanted ( vector  inRotation)

Set the desired aiming rotation.

It will move the aiming rotation smoothly to your desired aiming rotation.

Parameters
inRotationThe rotation wanted in radians

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