The script below will place the camera 15 meters in front in a
height of 5 meters of the vehicle of unit jeep1.
:note - vehicle jeep1 i'm using because if the jeep is not
named jeep1, but the driver then the camera wouldn't remain
onto the unit, when the unit has entered the jeep. While if the
jeep is named jeep1, it still makes no difference to the functionality.
Just place a jeep onto the map, name it jeep1 and create
a waypoint to somewhere for it.
Or try to place an empty jeep, then create a soldier close to it
(name it: jeep1), give it a waypoint type: GetIn (onto the jeep) and a second waypoint to somewhere. You will see the camera will remain in front of the unit (wether it's inside or outside the jeep).
:edit - ah yeah, the loop you see in the script is increasing
the local variable _i by 1 (every 0.01 seconds).
The condition to break the loop is: _i has reached 1500
This will be after 15 seconds (if my math-brain is still working
correct).
_i = 0
showCinemaBorder=true
titletext ["Camera Test","PLAIN DOWN"]
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_cam camsettarget vehicle jeep1
_cam camsetrelpos [0,15,5]
_cam camSetFOV 0.440
_cam camcommit 0
@camcommitted _cam
#loop1
_cam camsettarget vehicle jeep1
_cam camsetrelpos [0,15,5]
_cam camSetFOV 0.440
_cam camcommit 0
~0.01
_i = _i + 1
?(_i < 1500): goto "loop1"
titlecut ["","BLACK OUT",2]
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
titlecut ["","BLACK IN",2]
exit
~S~ CD