Home   Help Search Login Register  

Author Topic: Which direction ?  (Read 483 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
Which direction ?
« 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)?

Knut Erik

  • Guest
Re:Which direction ?
« Reply #1 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)

BrAinOfJ

  • Guest
Re:Which direction ?
« Reply #2 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

« Last Edit: 06 May 2003, 16:45:25 by BrAinOfJ »

deaddog

  • Guest
Re:Which direction ?
« Reply #3 on: 05 May 2003, 21:36:14 »
You could also use a gamelogic or even the raw coordinates, ie _cam camsettarget [4589,2002].


BrAinOfJ

  • Guest
Re:Which direction ?
« Reply #4 on: 06 May 2003, 16:46:14 »
I dont know how to get co-ordinates :-\

SimonRussi

  • Guest
Re:Which direction ?
« Reply #5 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