Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: MMG_MegaMultiGamer on November 05, 2016, 10:16:16 am
-
Here is my problem:
I have a camera which should make a turn, so i thought the best way to do that, is to create a ship, make the camera face to the ship, and then track it(ship is moving)...
What happens in-game: camera is on the right position but facing the wrong way(~180°, xz coordinate), however the movement from the ship (offset) still does its job.
So how can i fix this problem/ Is there an alternative way to make your camera turn(not instantly) and i also think that i don't understand it really, so please somebody explain it to me.
thanks
-
You want "set-camera-facing" as soon as you specify the 4th argument (the first three are coordinates) the camera will pan and not jump
-
Oh, im blind...thanks however
-
These are the SEXP you may want to place
--Event:Trigger Camera Tracker ------> this is the trigger. Place an SEXP to modify variable to 1 to enable and Modify variable again to disable
When
=
Tracker1
1
Do Nothing
--Event:Track Object ----->This event is chained above. Set the "repeat" times to 50000 or more and "interval" to 0
When
True
Set-Camera-Facing-Object
Get ObjectX ---->This accurate and easier than manually placing the values
YourShip
Get ObjectY ---->This accurate and easier than manually placing the values
YourShip
Get ObjectZ ---->This accurate and easier than manually placing the values
YourShip
1000 ----->This is for smooth panning.