Actions

When an Event is triggered, we use Actions to define how a Blueprint will react to this Event. You can use Actions to get or set values in the Blueprint variables or call Functions that modify the state of a Blueprint.

The following screenshot shows Event BeginPlay of a Blueprint. In this example, the Blueprint has a string variable named Bot Name. The SET action assigns the Archon value to the Bot Name variable. The next action, Print String, displays the value that is received on the In String pin on the screen. These values that are passed to the Functions are known as parameters. The In String pin is connected to a GET node of the Bot Name variable that returns the value of the Bot Name variable and passes it to the Print String Function:

To add the GET and SET Actions of a variable to Event Graph, simply drag and drop the variable in Event Graph to show the GET and SET options. Other Functions such as the Print String are added from Context Menu that appears when you right-click on the Event Graph panel. The GET and SET Actions can also be searched in Context Menu.

The white lines that connect the Actions are also known as the execution path.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset