Page 1 of 1

Camera Functions! (or how do I make a cutscene?)

Posted: Wed Sep 29, 2010 5:28 pm
by jangoisbaddest
I've been messing with the camera functions for the past couple of hours. No LUA errors, and the camera even goes more or less where I want it to (it's slightly off, though. Using DumpCamera for the coordinates). The big issue is that the camera only remains there for a moment before whipping back to the player character (admittedly, this may be why it appears to be in the wrong place...because it's already started to move back). I even tried disabling the player character beforehand. That had no effect.

So. I know Mav has done this kind of thing before, but if anyone else knows anything, I welcome the input. How does the camera operate, and how can I manipulate it so that I can have it sit at a specific position and angle for a while without the user being able to manipulate it, and how do I then re-attach the camera to the character unit (that is, only after a certain duration...preferably as a function)?

Re: Camera Functions! (or how do I make a cutscene?)

Posted: Thu Sep 30, 2010 2:57 pm
by DarthD.U.C.K.
i think mav did this by using turrets, if you make some insible object/unit, assign it to a neutral team and make the turret only aim at neutrals,it could probably work. maybe there's a less complicated way though..

Re: Camera Functions! (or how do I make a cutscene?)

Posted: Thu Sep 30, 2010 3:05 pm
by jangoisbaddest
DarthD.U.C.K. wrote:i think mav did this by using turrets, if you make some insible object/unit, assign it to a neutral team and make the turret only aim at neutrals,it could probably work. maybe there's a less complicated way though..
That sounds like it could work. Reduce the movement values to 0 and then force the player into it, right? It just seems like I should be able to do it with just the LUA though. I mean, the only issue is that the camera only stays at the new location for a frame. Maybe if there was a function to activate freecam mode, and then activate chase mode?

Anyway, I guess I'll start messing about with invisible turrets for now. Thanks Darth!