OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BrAinOfJ on 05 May 2003, 07:40:42

Title: Which direction ?
Post 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)?
Title: Re:Which direction ?
Post by: Knut Erik on 05 May 2003, 14:29:03
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)
Title: Re:Which direction ?
Post by: BrAinOfJ on 05 May 2003, 15:29:31
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

Title: Re:Which direction ?
Post by: deaddog on 05 May 2003, 21:36:14
You could also use a gamelogic or even the raw coordinates, ie _cam camsettarget [4589,2002].

Title: Re:Which direction ?
Post by: BrAinOfJ on 06 May 2003, 16:46:14
I dont know how to get co-ordinates :-\
Title: Re:Which direction ?
Post by: SimonRussi on 06 May 2003, 17:26:15
@Brain

a fine way to get coordinates is using camera.sqs. Get yourself Messiah tutorial, it works greatly.

simon