-
Notifications
You must be signed in to change notification settings - Fork 240
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.
- Add
Flow Component
to the actor. - Assign a unique gameplay tag on the
Identity Tags
list.
- Add the
Receive Notify
event from the Flow Component.
- 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 theReceive Notify
event to your actor. It allows you to call different events in the same actor.
-
- Call
Notify Graph
from the Flow Component.
- 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, theSuccess
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. TheSuccess
output will always be triggered.
-
- Source Actor: call
Notify Actor
from the Flow Component.-
Notify Tag
is optional. It allows you to call different events in the target actor.
-
- Target Actor: add the
Receive Notify
event from the Flow Component.
- Add the
Flow Events
track to the Level Sequence.- Simply place a key on the section and give it a name.
- Include this Level Sequence on any
Play Level Sequence
node.- Either use the
Refresh Asset
button on the toolbar or theRefresh Context Pins
option on the node. You need to use it after every change of event names, adding or removing events from the timeline.
- Either use the
Got any questions? Discuss things related to the plugin on the dedicated Discord server.