Arma Reforger Script API
|
Public Member Functions | |
bool | GetFocusPos (out vector outPos) |
Get focus position in the world. | |
float | GetFocusDistance () |
void | SetFocusToCursor () |
Set focus to cursor position. | |
void | SetFocus (vector pos, IEntity entity=null) |
void | ResetFocus () |
Reset focus. | |
ScriptInvoker | GetOnFocusChange () |
Get event called when focus is set or cleared. | |
ScriptInvoker | GetOnFocusDistanceChange () |
Get event called when focus distance changes. | |
override void | EOnCameraReset () |
Camera value are reset. | |
override void | EOnCameraFrame (SCR_ManualCameraParam param) |
Evaluate the component every frame. | |
override void | EOnCameraSave (SCR_ManualCameraComponentSave data) |
Save persistent data. | |
override void | EOnCameraLoad (SCR_ManualCameraComponentSave data) |
Load persistent data. | |
override bool | EOnCameraInit () |
Initialise the component. | |
override void | EOnCameraExit () |
Terminate the component. | |
Public Member Functions inherited from SCR_BaseManualCameraComponent | |
void | SetEnabled (bool enabled) |
Enable the component. | |
int | IsEnabled () |
Check if the component is enabled. | |
int | GetPriority () |
Get evaluation priority. | |
bool | HasFlag (EManualCameraFlag flag) |
Check if the required flag is active. | |
bool | InitBase (SCR_ManualCamera camera) |
void | EOnCameraParentChange (bool attached, IEntity parent) |
Terminate the component. | |
Protected Attributes | |
ref ScriptInvoker | m_OnFocusChange = new ScriptInvoker() |
ref ScriptInvoker | m_OnFocusDistanceChange = new ScriptInvoker() |
Protected Attributes inherited from SCR_BaseManualCameraComponent | |
int | m_iPriority |
SCR_ManualCamera | m_Camera |
InputManager | m_InputManager |
Additional Inherited Members | |
Protected Member Functions inherited from SCR_BaseManualCameraComponent | |
SCR_ManualCamera | GetCameraEntity () |
InputManager | GetInputManager () |
vector | CoordToCamera (vector pos) |
vector | CoordFromCamera (vector pos) |
Focus camera on cursor position.
override void SCR_FocusManualCameraComponent.EOnCameraExit | ( | ) |
Terminate the component.
Implements SCR_BaseManualCameraComponent.
override void SCR_FocusManualCameraComponent.EOnCameraFrame | ( | SCR_ManualCameraParam | param | ) |
Evaluate the component every frame.
[in] | param | Object carrying camera properties |
Implements SCR_BaseManualCameraComponent.
override bool SCR_FocusManualCameraComponent.EOnCameraInit | ( | ) |
Initialise the component.
Implements SCR_BaseManualCameraComponent.
override void SCR_FocusManualCameraComponent.EOnCameraLoad | ( | SCR_ManualCameraComponentSave | data | ) |
override void SCR_FocusManualCameraComponent.EOnCameraReset | ( | ) |
Camera value are reset.
Implements SCR_BaseManualCameraComponent.
override void SCR_FocusManualCameraComponent.EOnCameraSave | ( | SCR_ManualCameraComponentSave | data | ) |
float SCR_FocusManualCameraComponent.GetFocusDistance | ( | ) |
bool SCR_FocusManualCameraComponent.GetFocusPos | ( | out vector | outPos | ) |
Get focus position in the world.
[out] | outPos | Focus position |
ScriptInvoker SCR_FocusManualCameraComponent.GetOnFocusChange | ( | ) |
Get event called when focus is set or cleared.
ScriptInvoker SCR_FocusManualCameraComponent.GetOnFocusDistanceChange | ( | ) |
Get event called when focus distance changes.
void SCR_FocusManualCameraComponent.ResetFocus | ( | ) |
Reset focus.
void SCR_FocusManualCameraComponent.SetFocus | ( | vector | pos, |
IEntity | entity = null |
||
) |
[in] | pos | |
[in] | entity |
void SCR_FocusManualCameraComponent.SetFocusToCursor | ( | ) |
Set focus to cursor position.
|
protected |
|
protected |