Time for action - making a Flow Graph to spawn the player at a specific location
Let's get right to learning how to use Flow Graph to accomplish some basic game scripting:
Open the level from the previous chapter, or create a new level.
Drag-and-drop the SpawnPoint entity, from the Entities | Multiplayer section in the RollupBar tab, into the level.
Select the SpawnPoint entity and right-click to open the contextual menu. Select Create Flow Graph as seen in the following screenshot:
Name the created Flow Graph as
Player_Spawn
in the new Flow Graph dialog box.The Flow Graph window will now be opened, as a new script is ready to be added to the SpawnPoint entity.
Flow Graphs created in this fashion are saved on the entity itself. This should be considered when copying and pasting any entity with a Flow Graph saved on it, as a Flow Graph will also be copied as part of the entity.
Select the SpawnPoint entity and right-click on any open space in the Flow Graph editor viewport.
A contextual window will...