Jump to content

How can I set the flycam position/angle via script?


bophohufra

Recommended Posts

I figured out that you can use e.g. HoldKey 0 to move the camera forward by simulating pressing the forward key. However, you can only use this to move forward/back/left/right, not up/down and you can't change the camera angle either since it's controlled by mouse movement which can't be simulated by HoldKey (as far as I know).

 

Is it at all possible to either set the camera angle to fixed values, or center it on e.g. an actor reference? I figured the camera itself should be a reference but if it is then I couldn't even find the EditorID.

Link to comment
Share on other sites

Hmph.. Camera is a reference? nice idea, never thought of that.

 

From what I can say - there is no way to set position of flying camera. I've been looking to do this for a very long time and haven't found a solution.

 

EDIT:

but when you load the game in TFC mode your camera position is fixed in position it was before loading. I think if it was a reference it would have been reset on each game load. I think it's possible to manipulate the camera but you'll need to ask plugin makers for that function.

Edited by TommInfinite
Link to comment
Share on other sites

but when you load the game in TFC mode your camera position is fixed in position it was before loading. I think if it was a reference it would have been reset on each game load.

 

You're right, it doesn't seem that the camera is a reference.

 

Is it possible to show a VATS camera (or even better, the kill camera) without actually entering VATS/killing the player?

Link to comment
Share on other sites

 

but when you load the game in TFC mode your camera position is fixed in position it was before loading. I think if it was a reference it would have been reset on each game load.

 

You're right, it doesn't seem that the camera is a reference.

 

Is it possible to show a VATS camera (or even better, the kill camera) without actually entering VATS/killing the player?

 

Tried to do that too. Haven't found the function for that.

 

The only way I know to show player is to create a player clone and use player as a camera - I use it in my mods a lot. Fallout2AM is the one who introduced me to this method. If you want script sources, contact me via PM.

Link to comment
Share on other sites

I want to have a sort-of cinematic camera while the player is moving around normally; I don't see how I can do that with a player clone.

 

Now I tried killing the player and immediately resurrecting, but after recovering from ragdoll state the player object starts spinning and falls through the geometry, regardless of if it's resurrected in the same frame or later. :mad:

Link to comment
Share on other sites

I want to have a sort-of cinematic camera while the player is moving around normally; I don't see how I can do that with a player clone.

Easy.

If isControlPressed 0
 if CloneRef.isAnimPlaying forward == 0
  CloneRef.playidle Forward 1
 endif
endif

Player clone will go forward (indefinately!). So the same for all directions.When you want clone to stop (user is not holding any of control buttons) do "playgroup idle 1" and clone will stop.

Edited by TommInfinite
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...