|
Arma Reforger Script API
|
Public Member Functions | |
| proto external ScriptedCameraSet | GetCameraSet () |
| proto external bool | IsInThirdPerson () |
| Returns true if the camera is in third person mode. | |
| proto external void | SetThirdPerson (bool val) |
| Set the current third person camera state. | |
| proto external float | GetFocusMode () |
| Returns the current value of the focus mode. | |
| proto external void | SetFocusMode (float focusMode) |
| Set the current value of the focus mode. | |
| proto external float | GetBlendAlpha (ScriptedCameraItem forCameraItem) |
| proto external ScriptedCameraItem | GetCurrentCamera () |
| returns current active camera | |
| proto external bool | IsCameraBlending () |
| returns true if there's more than one processing camera | |
| proto external void | SetLensFlareSet (CameraLensFlareSetType type, string lensFlareSetUserName) |
| Sets camera lens flare set. | |
| void | Init () |
| initialization | |
| void | OnCameraActivate () |
| activation | |
| void | OnCameraDeactivate () |
| deactivation | |
| int | CameraSelector () |
| selects next camera | |
| void | OnBeforeCameraUpdate (float pDt, bool pIsKeyframe) |
| before camera update | |
| void | OnAfterCameraUpdate (float pDt, bool pIsKeyframe, inout vector transformMS[4], inout vector transformWS[4]) |
| after camera update | |
| void | CollisionSolver (float pDt, inout ScriptedCameraItemResult pOutResult, inout vector resCamTM[4], bool isKeyframe) |
| collision solver | |
| void | OnThirdPersonSwitch (bool isInThirdPerson) |
| when we switch between FPP and TPP | |
| float | GetCameraTransitionTime (int pFrom, int pTo) |
| get how long should transition between given cameras be | |
| float | GetOverlayCameraFOVScalarWeight () |
| Weight in the <0, 1> range of how much input sensitivity should be modulated if an overlay camera is active. | |
Protected Member Functions | |
| float | CalculateFovScalar (notnull CameraBase mainCamera, CameraBase overlayCamera) |
| Calculate and return desired fov scalar. | |
|
protected |
Calculate and return desired fov scalar.
1.0 = normal
| mainCamera | Main camera used, usually player camera |
| overlayCamera | Overlay camera, usually PiP camera or null |
Implemented in SCR_CharacterCameraHandlerComponent.
| int CameraHandlerComponent.CameraSelector | ( | ) |
selects next camera
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.CollisionSolver | ( | float | pDt, |
| inout ScriptedCameraItemResult | pOutResult, | ||
| inout vector | resCamTM[4], | ||
| bool | isKeyframe ) |
collision solver
Implemented in SCR_CharacterCameraHandlerComponent.
| proto external float CameraHandlerComponent.GetBlendAlpha | ( | ScriptedCameraItem | forCameraItem | ) |
| proto external ScriptedCameraSet CameraHandlerComponent.GetCameraSet | ( | ) |
| float CameraHandlerComponent.GetCameraTransitionTime | ( | int | pFrom, |
| int | pTo ) |
get how long should transition between given cameras be
Implemented in SCR_CharacterCameraHandlerComponent.
| proto external ScriptedCameraItem CameraHandlerComponent.GetCurrentCamera | ( | ) |
returns current active camera
| proto external float CameraHandlerComponent.GetFocusMode | ( | ) |
Returns the current value of the focus mode.
| float CameraHandlerComponent.GetOverlayCameraFOVScalarWeight | ( | ) |
Weight in the <0, 1> range of how much input sensitivity should be modulated if an overlay camera is active.
(0 = main camera, 1 = overlay camera).
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.Init | ( | ) |
initialization
Implemented in SCR_CharacterCameraHandlerComponent.
| proto external bool CameraHandlerComponent.IsCameraBlending | ( | ) |
returns true if there's more than one processing camera
| proto external bool CameraHandlerComponent.IsInThirdPerson | ( | ) |
Returns true if the camera is in third person mode.
| void CameraHandlerComponent.OnAfterCameraUpdate | ( | float | pDt, |
| bool | pIsKeyframe, | ||
| inout vector | transformMS[4], | ||
| inout vector | transformWS[4] ) |
after camera update
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.OnBeforeCameraUpdate | ( | float | pDt, |
| bool | pIsKeyframe ) |
before camera update
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.OnCameraActivate | ( | ) |
activation
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.OnCameraDeactivate | ( | ) |
deactivation
Implemented in SCR_CharacterCameraHandlerComponent.
| void CameraHandlerComponent.OnThirdPersonSwitch | ( | bool | isInThirdPerson | ) |
when we switch between FPP and TPP
Implemented in SCR_CharacterCameraHandlerComponent.
| proto external void CameraHandlerComponent.SetFocusMode | ( | float | focusMode | ) |
Set the current value of the focus mode.
| proto external void CameraHandlerComponent.SetLensFlareSet | ( | CameraLensFlareSetType | type, |
| string | lensFlareSetUserName ) |
Sets camera lens flare set.
| type | type of the lens flare set |
| userSetName | user name of the lens flare set (used only when type is set to User) |
| proto external void CameraHandlerComponent.SetThirdPerson | ( | bool | val | ) |
Set the current third person camera state.