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)?
Camera Functions! (or how do I make a cutscene?)
Moderator: Moderators
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Camera Functions! (or how do I make a cutscene?)
Last edited by jangoisbaddest on Fri Oct 01, 2010 4:26 pm, edited 1 time in total.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Camera Functions! (or how do I make a cutscene?)
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..
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Re: Camera Functions! (or how do I make a cutscene?)
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?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..
Anyway, I guess I'll start messing about with invisible turrets for now. Thanks Darth!
