Changing the player camera through key input
In this recipe, we will look at a simple setup to allow the player to switch from the First Person view to the Third Person view.
My_Level.cry within the Sandbox
- Begin by placing an AreaTrigger entity onto the map to use as the container for the Flow Graph.
- In the RollupBar, click on the Entities button.
- Under the Triggers section, select the AreaTrigger.
- Right-click the newly placed AreaTrigger and create a new Flow Graph. Name the Flow Graph as
- With the Flow Graph open and the new AreaTrigger selected, add in the following nodes:
- 3x System:ConsoleVariable
- Set the input Key = g.
- Set all three System:ConsoleVariable ...