|
Arma Reforger Script API
|
Public Member Functions | |
| void | SetDeltaPos (vector deltaPos) |
| Set position as delta change from the current position. | |
| bool | GetCursorWorldPos (out vector outPos=vector.Zero) |
| Get position under cursor. | |
| void | SetCursorWorldPos (vector pos) |
| void | ShowDebug (SCR_ManualCamera camera) |
| void | ProcessTransform () |
| void | SCR_ManualCameraParam (vector transformOriginalIn[4], float timeSliceIn, BaseWorld worldIn, float fovIn, bool isManualInputEnabledIn, vector velocityOriginalIn, EManualCameraFlag flagIn) |
Public Attributes | |
| float | timeSlice |
| Frame time slice. | |
| BaseWorld | world |
| World in which the camera exists. | |
| IEntity | target |
| Entity under cursor. | |
| EManualCameraFlag | flag |
| Camera flag. | |
| vector | transformOriginal [4] |
| Camera transform before components evalulation. | |
| vector | transform [4] |
| Camera transform applied after components evaluation. | |
| vector | rotOriginal |
| Camera rotation in euler angles before components evaluation. | |
| vector | rotDelta |
| Camera rotation in euler angles applied after components evaluation. | |
| vector | velocityOriginal |
| Velocity from the previous frame. | |
| vector | multiplier |
| Speed multiplier horizontal[0] and vertical[1]. | |
| float | fovOriginal |
| Field of view before components evaluation. | |
| float | fov |
| Field of view applied after components evaluation. | |
| bool | isManualInputEnabled |
| Is manual input enabled by the camera entity? | |
| bool | isManualInput |
| Did manual input modify the camera? | |
| bool | isCursorEnabled = true |
| Is cursor on empty space and not on some active element, e.g., button? | |
| bool | isDirty |
| Did camera settings change? | |
| bool | isDirtyExternal |
| Did some external settings change the camera? DO NOT MODIFY! | |
Static Protected Attributes | |
| const float | TRACE_DIS = 250 |
Parameter for carrying information between individual camera components.
| void SCR_ManualCameraParam.SCR_ManualCameraParam | ( | vector | transformOriginalIn[4], |
| float | timeSliceIn, | ||
| BaseWorld | worldIn, | ||
| float | fovIn, | ||
| bool | isManualInputEnabledIn, | ||
| vector | velocityOriginalIn, | ||
| EManualCameraFlag | flagIn ) |
| transformOriginalIn | |
| timeSliceIn | |
| worldIn | |
| fovIn | |
| isManualInputEnabledIn | |
| velocityOriginalIn | |
| flagIn |
| bool SCR_ManualCameraParam.GetCursorWorldPos | ( | out vector | outPos = vector::Zero | ) |
Get position under cursor.
| [out] | outPos | world position under cursor |
| void SCR_ManualCameraParam.ProcessTransform | ( | ) |
| void SCR_ManualCameraParam.SetCursorWorldPos | ( | vector | pos | ) |
| pos |
| void SCR_ManualCameraParam.SetDeltaPos | ( | vector | deltaPos | ) |
Set position as delta change from the current position.
| deltaPos | Delta vector |
| void SCR_ManualCameraParam.ShowDebug | ( | SCR_ManualCamera | camera | ) |
| camera |
| EManualCameraFlag SCR_ManualCameraParam.flag |
Camera flag.
| float SCR_ManualCameraParam.fov |
Field of view applied after components evaluation.
| float SCR_ManualCameraParam.fovOriginal |
Field of view before components evaluation.
DO NOT MODIFY!
| bool SCR_ManualCameraParam.isCursorEnabled = true |
Is cursor on empty space and not on some active element, e.g., button?
| bool SCR_ManualCameraParam.isDirty |
Did camera settings change?
| bool SCR_ManualCameraParam.isDirtyExternal |
Did some external settings change the camera? DO NOT MODIFY!
| bool SCR_ManualCameraParam.isManualInput |
Did manual input modify the camera?
| bool SCR_ManualCameraParam.isManualInputEnabled |
Is manual input enabled by the camera entity?
| vector SCR_ManualCameraParam.multiplier |
Speed multiplier horizontal[0] and vertical[1].
| vector SCR_ManualCameraParam.rotDelta |
Camera rotation in euler angles applied after components evaluation.
| vector SCR_ManualCameraParam.rotOriginal |
Camera rotation in euler angles before components evaluation.
DO NOT MODIFY!
| IEntity SCR_ManualCameraParam.target |
Entity under cursor.
| float SCR_ManualCameraParam.timeSlice |
Frame time slice.
|
staticprotected |
| vector SCR_ManualCameraParam.transform[4] |
Camera transform applied after components evaluation.
| vector SCR_ManualCameraParam.transformOriginal[4] |
Camera transform before components evalulation.
DO NOT MODIFY!
| vector SCR_ManualCameraParam.velocityOriginal |
Velocity from the previous frame.
DO NOT MODIFY!
| BaseWorld SCR_ManualCameraParam.world |
World in which the camera exists.