OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BrAinOfJ on 05 May 2003, 07:40:42
-
how would i make:
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]
_cam camsettarget getmarkerpos "openshot"
_cam camsetrelpos [5,5,1]
_cam camcommit 0
@camcommitted _cam
aim in a specific direction. eg 0 degrees (north)?
-
Just make the camera target something it the direction you want.
For exsample, you can have a jeep where you want the camera to aim,
_camera camsettarget yourJeep
or a marker
_camera camsettarget getmarkerpos "YourMarker"
Eeeeasy eh 8)
-
I found a solutiuon, and this is the lamest cheat eva.
If you use a unit as your camera's target, you can change in which direction the camera faces by changing the angle of a unit. If you use a marker, it will always face in the 1 direction. But no one wants to watch wayward units scattered all through their cutsceen. My solution ? Invisable H's. They work great. They arent a perfect solution, but they work a treat.
Of course if you want to focus on a specific unit, use it, but if you want a wide angle shot of alot of units and groups, it works great :)
gg all
-
You could also use a gamelogic or even the raw coordinates, ie _cam camsettarget [4589,2002].
-
I dont know how to get co-ordinates :-\
-
@Brain
a fine way to get coordinates is using camera.sqs. Get yourself Messiah tutorial, it works greatly.
simon