GTAG - Modding - Opcode Database - 0679
Opcode Database
0679
| Description | Keeps the camera relative to the car with the specified offset. Rotation parameters change the position the camera points to in degrees. The cameras tilt can also be changed in degrees. switchstyle 1 - smooth 2 - cut |
|---|---|
| Parameters (v2) | 1) Vehicle handle (Integer) (INT) 2) X Offset (Float) (FLOAT) 3) Y Offset (Float) (FLOAT) 4) Z Offset (Float) (FLOAT) 5) X Rotation (Float) (FLOAT) 6) Y Rotation (Float) (FLOAT) 7) Z Rotation (Float) (FLOAT) 8) Rotation (Float) (FLOAT) 9) Integer (INT) |
| Games | |
| Category | Camera, Common, Vehicle |
| Command Name (IV) | ATTACH_CAM_TO_VEHICLE |
| San Andreas | |
| sascm.ini | 0679=9,attach_camera_to_vehicle %1d% offset %2d% %3d% %4d% rotation %5d% %6d% %7d% tilt %8d% switchstyle %9d% |
| Example | 0679: attach_camera_to_vehicle 161@ offset 0.0 -2.0 $Z_CAMERA rotation 0.0 0.0 204@ tilt 0.0 switchstyle 2 |
| Command Name | ATTACH_CAMERA_TO_VEHICLE |

