unreal.InteractionContextData

class unreal.InteractionContextData(instigator: InteractableInstigator = Ellipsis, interaction_tags: GameplayTagContainer = Ellipsis)

Bases: StructBase

Data about a specific interaction that is happening.

It is encouraged that you make structs that inherit from this one to add custom game logic and conditions you may need for any given interaction. For example, you may have a target which is only able to be used if the player has a specific item equipped, or some other conditional state like that.

C++ Source:

  • Plugin: InteractionInterface

  • Module: InteractableInterface

  • File: InteractionTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • instigator (InteractableInstigator): [Read-Write] The interaction instigator who is doing the querying!

  • interaction_tags (GameplayTagContainer): [Read-Write] Some tags that are unique to this interaction and can be used to provide some context

property instigator: InteractableInstigator

[Read-Write] The interaction instigator who is doing the querying!

Type:

(InteractableInstigator)

property interaction_tags: GameplayTagContainer

[Read-Write] Some tags that are unique to this interaction and can be used to provide some context

Type:

(GameplayTagContainer)