
Zitat von
Crymod
The method i used is as follows:
Make a Tagpoint and snap it to the terrain, at the level where the players feet would be.
Make a camera and set it up at approx eye level and back a little from the TagPoint
Link the camera to the tagpoint with the link tool
Now using 2 x Entity:EntityPos nodes in FlowGraph, one that give you the position of the local player and the other that give you the position of the TagPoint.
Connect the pos and rotation output of the Entity:EntityPos of the local player to the Pos and rotation input node of the tagpoint Entity:EntityPos
Now your tagpoint is going to move with the player and because the camera is linked to the tagpoint the camera is also going to move as well. Another good reason we linked the camera to the tagpoint and that the camera is back from the tagpoint, is because when you rotate the player, the camera has to be pivoted from the tagpoint, otherwise the camera will always be looking forward even when you turn the player.
Now in track view, make a new SceneNode, then under that choose your camera. Note, this is NOT the trackview node used to move the camera as you would in a cutscene, but the other type that you use to switch cameras, so make sure you have the correct one.
Make the trackview animation 1 frame long and make it Loop.
Now back in the FlowGraph make a start node and make it trigger a PlaySequence node so when you start the game it will switch to the new camera.
This willl work, however yourstill gonna need to press F1 otherwise all your going to see is arms and legs. Currently i know no way of triggering the F1 3rd person view with any other method than actually pressing F1.
So all in all your better using F1 really, however this method lets you set a new offset or a GRAW or Gears OF War style "Over the shoulder camera". If you wanna add a "switch to fp gun view" use a checkZoom node and trigger it to stop the track view on zoom in and retrigger it on zoom out.
Anyway hope this gets you started..as I said though, 3rd person view is only possible by pressing F1, if you dont, you will only ever see arms and legs unfortuantly. If you get stuck I will try and dig out the FlowGraph testing I did with this concept.