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

Protected Member Functions

void OnInit (IEntity owner, BaseSightsComponent sights)
 Called on initialization.
 
void OnUpdate (IEntity owner, BaseSightsComponent sights, float timeSlice)
 Called every frame when active to update current state.
 
float GetCurrentFOV ()
 Return current field of view of this info.
 

Additional Inherited Members

- Public Member Functions inherited from SightsFOVInfo
proto external float GetFOV ()
 Returns current field of view provided by this info.
 

Member Function Documentation

◆ GetCurrentFOV()

float ScriptedSightsFOVInfo.GetCurrentFOV ( )
protected

Return current field of view of this info.

If 0 or less is returned, first person perspective FOV will be used instead. Value can be accessed via SightsFOVInfo.GetFOV();

Returns
Returns field of view in degrees.

Implemented in SCR_FixedFOVInfo, SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.

◆ OnInit()

void ScriptedSightsFOVInfo.OnInit ( IEntity  owner,
BaseSightsComponent  sights 
)
protected

Called on initialization.

Parameters
ownerParent entity.
sightsParent sights component.

Implemented in SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.

◆ OnUpdate()

void ScriptedSightsFOVInfo.OnUpdate ( IEntity  owner,
BaseSightsComponent  sights,
float  timeSlice 
)
protected

Called every frame when active to update current state.

Parameters
ownerParent entity.
sightsParent sights component.
timeSliceDelta of time since last update.

Implemented in SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.


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