Skip to content

Generic Gameplay Tag events

Krzysiek Justyński edited this page Jul 1, 2022 · 1 revision

Nodes available in the Flow plugin support finding actors and communicating with them by Gameplay Tags.

  • This can have many advantages over using soft references to actor instances, i.e. changing actor instance name won't break reference.
  • This also allows communicating with actors spawned in runtime, i.e. all characters.
  • You can call multiple actors identified by the same Gameplay Tag, which may be useful in many cases.

Obviously, you can use soft references to actors in your project-specific Flow nodes. Although the Flow plugin comes with a mechanism to call events in a generic way, without the need to know the actor's class and functions.

Adding Flow Component to Actor

  • Add Flow Component to the actor.
  • Assign a unique gameplay tag on the Identity Tags list.

image

Calling Actor events from the Flow Graph

  • Add the Receive Notify event from the Flow Component.

image

  • Place the Notify Actor node in your Flow Graph.
    • Identity Tags should include the Identity Tag assigned in the Flow Component.
    • Notify Tag is an optional tag that would be sent through the Receive Notify event to your actor. It allows you to call different events in the same actor.

image

Calling Flow Graph event from the Actor

  • Call Notify Graph from the Flow Component.

image

  • Place the On Notify From Actor node in your Flow Graph.
    • Identity Tags should include the Identity Tag assigned in the Flow Component.
    • Notify Tag is optional. If added, it needs to match the tag selected on Notify Graph in the step above. Otherwise, the Success output won't be triggered.
    • If Notify Tag will be empty, the Notify node won't check what tag has been sent from the actor. The Success output will always be triggered.

image

Calling events between Actors

  • Source Actor: call Notify Actor from the Flow Component.
    • Notify Tag is optional. It allows you to call different events in the target actor.

image

  • Target Actor: add the Receive Notify event from the Flow Component.

image

Calling Flow Graph events from Sequencer

  • Add the Flow Events track to the Level Sequence.
    • Simply place a key on the section and give it a name.

image

  • Include this Level Sequence on any Play Level Sequence node.
    • Either use the Refresh Asset button on the toolbar or the Refresh Context Pins option on the node. You need to use it after every change of event names, adding or removing events from the timeline.

image

image