// CreateCameraWithParams
Cam CREATE_CAMERA_WITH_PARAMS(Hash camHash, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fov, BOOL active, int rotationOrder);
Parameters:- camHash:
The hash of the camera type, use GET_HASH_KEY to get the camera hash from the name.
- posX:
The x position of the camera.
- posY:
The y position of the camera.
- posZ:
The z position of the camera.
- rotX:
The x rotation of the camera.
- rotY:
The y rotation of the camera.
- rotZ:
The z rotation of the camera.
- fov:
The Field Of View of the camera, is the observable world that is seen.
- active:
Set to true if you wish to make this new camera the active camera.
- rotationOrder:
The order of rotation, see GET_ENTITY_ROTATION
.
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