Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (gta2cam){
- if (loop_gta2cam)
- {
- if (DOES_CAM_EXIST(cam_gta2)) SET_CAM_ACTIVE(cam_gta2, 1);
- else
- {
- cam_gta2 = CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
- ATTACH_CAM_TO_ENTITY(cam_gta2, PLAYER_PED_ID(), 0.0f, 0.0f, 8.5f, 1);
- Vector3 Pos = GET_ENTITY_COORDS(PLAYER_PED_ID(), 1);
- POINT_CAM_AT_COORD(cam_gta2, Pos.x, Pos.y, -1000000);
- SET_CAM_ACTIVE(cam_gta2, 1);
- }
- RENDER_SCRIPT_CAMS(1, 0, 3000, 1, 0);
- }
- else if (DOES_CAM_EXIST(cam_gta2))
- {
- SET_CAM_ACTIVE(cam_gta2, 0);
- DESTROY_CAM(cam_gta2, 0);
- RENDER_SCRIPT_CAMS(0, 0, 3000, 1, 0);
- }
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement