Advertisement
Dev

GTA Cam SRC

Dev
Apr 3rd, 2016
35,402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. if (gta2cam){
  2. if (loop_gta2cam)
  3. {
  4. if (DOES_CAM_EXIST(cam_gta2)) SET_CAM_ACTIVE(cam_gta2, 1);
  5. else
  6. {
  7. cam_gta2 = CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
  8. ATTACH_CAM_TO_ENTITY(cam_gta2, PLAYER_PED_ID(), 0.0f, 0.0f, 8.5f, 1);
  9. Vector3 Pos = GET_ENTITY_COORDS(PLAYER_PED_ID(), 1);
  10. POINT_CAM_AT_COORD(cam_gta2, Pos.x, Pos.y, -1000000);
  11. SET_CAM_ACTIVE(cam_gta2, 1);
  12. }
  13. RENDER_SCRIPT_CAMS(1, 0, 3000, 1, 0);
  14. }
  15. else if (DOES_CAM_EXIST(cam_gta2))
  16. {
  17. SET_CAM_ACTIVE(cam_gta2, 0);
  18. DESTROY_CAM(cam_gta2, 0);
  19. RENDER_SCRIPT_CAMS(0, 0, 3000, 1, 0);
  20. }
  21. return;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement