| Property | Value |
|---|---|
| Native Name | CREATE_CAMERA_WITH_PARAMS |
| Hash | 0x6ABFA3E16460F22D |
| Return Type | Cam |
| Parameters | camHash (Hash), posX (float), posY (float), posZ (float), rotX (float), rotY (float), rotZ (float), fov (float), active (BOOL), rotationOrder (int) |
Description: Create a camera with the specified camera hash, You can use SET_CAM_ natives to manipulate the camera.
Make sure to call RENDER_SCRIPT_CAMS once the camera is created, or this won't have any visible effect.
Take a look at CREATE_CAM if you would like to see the available camera names.
NativeDB Introduced: v323
Parameters
camHash(Hash) — The hash of the camera type, use GET_HASH_KEY to get the camera hash from the name.posX(float) — The x position of the camera.posY(float) — The y position of the camera.posZ(float) — The z position of the camera.rotX(float) — The x rotation of the camera.rotY(float) — The y rotation of the camera.rotZ(float) — The z rotation of the camera.fov(float) — The Field Of View of the camera, is the observable world that is seen.active(BOOL) — Set to true if you wish to make this new camera the active camera.rotationOrder(int) — The order of rotation, seeGET_ENTITY_ROTATION.