Hi everyone!
I'm making a mod where, in a small cutscene with no player control, where the player is knocked out and falls unconscious. In practical terms, this is similar to the execution scene in Helgen where the player looks sideways.
According to this page: http://www.gamesas.com/topic/1478489-manipulate-camera/, you should have a small actor that you apply the translation and rotation, and then you make the camera point to it by doing Game.SetCameraTarget(). The problem with this approach is that I can still see the player.
A second approach I tried to do was moving the player by calling TranslateTo directly to him, but it doesn't make the rotation I want and when using TranslateTo, once I enable Player Controls, I can't move the player (even if I can enter combat and the like).
What am I doing wrong here? How can I fix it?
Here's the code that I'm using, and it is a function of the small actor:
Scriptname Abalos_DFS2_TestCameraScript extends Actor Quest Property Abalos_DFS2_TestQuest Auto Actor Property Player Auto Function BeginTestCamera() Game.DisablePlayerControls() float X = Player.GetPositionX() float Y = Player.GetPositionY() float Z = Player.GetPositionZ() Debug.MessageBox("X Y Z: " + X + " " + Y + " " + Z) ;Make the object move to the player position MoveTo(Player, 0,0, 72) Game.SetCameraTarget(self) self.TranslateTo(-1440, -288, Z, -90.0, 90.0, 0, 100.0, 100.0) Game.ForceThirdPerson() Game.ForceFirstPerson() Utility.Wait(10) Debug.MessageBox("Finishing Camera") Game.EnablePlayerControls() Game.SetCameraTarget(Player) Game.ForceFirstPerson()EndFunction
Thanks, everyone!!
P.S: I've been trying to see how they do it in Helgen (MQ101), but I can't find the rotation!