Author Topic: Set-camera-target SEXP broken?  (Read 1649 times)

0 Members and 1 Guest are viewing this topic.

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Set-camera-target SEXP broken?
Obviously I'm FREDing a cutscene here. I'm trying to pull off a kind of 'ship flies over camera and camera turns to track it' effect. However, when the SEXP triggers, the camera tracks it but there's nothing on screen. I don't know if I'm just doing it wrong or if it's actually broken.

Code: [Select]
$Formula: ( when
   ( <
      ( distance
         "Alpha 1"
         "Waypoint path 3:3"
      )
      100
   )
   ( set-camera-target "Alpha 1" )
)
+Name: Camera Follows Me
+Repeat Count: 1
+Interval: 1
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 
Re: Set-camera-target SEXP broken?
Use every time and set-camra-facing-object
May the Force be with you

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: Set-camera-target SEXP broken?
set-camera-target doesn't make the camera face the target, it just makes it move the same way the target moves. Most of the time you want to first make it face the target, and then use set-camera-target to make it follow the target.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Set-camera-target SEXP broken?
yep, thats what that does. i think you need to be using set-camera-facing-object. now if you wanted to view an object from another object then you would use set-camera-target on the ship you want to observe from and then set-camera-facing-object on the object you want to watch. set-camera-target just puts the camera in an objects frame of reference, anything you do after that is relative tot he target instead of world (at least thats how it works in scripting, but the sexps use the same function calls). should probably move this to an appropriate forum.
« Last Edit: September 23, 2011, 05:47:31 am by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Axem

  • 211
Re: Set-camera-target SEXP broken?
Thread tl;dr: Make sure you set camera orientation to 0 0 0. :)

  

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Set-camera-target SEXP broken?
It's a wacky sexp, it does not what you'd expect.

Try this, before using that sexp, reset the camera, then use set-camera-facing-object, and only then use set-camera-target.
el hombre vicio...