Arma Reforger Script API
|
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. | |
|
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();
Implemented in SCR_FixedFOVInfo, SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.
|
protected |
Called on initialization.
owner | Parent entity. |
sights | Parent sights component. |
Implemented in SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.
|
protected |
Called every frame when active to update current state.
owner | Parent entity. |
sights | Parent sights component. |
timeSlice | Delta of time since last update. |
Implemented in SCR_SightsZoomFOVInfo, and SCR_VariableSightsFOVInfo.