unreal.GameplayEventData

class unreal.GameplayEventData(event_tag=['None'], instigator=None, target=None, optional_object=None, optional_object2=None, context_handle=[], instigator_tags=[[]], target_tags=[[]], event_magnitude=0.0, target_data=[])

Bases: unreal.StructBase

Metadata for a tag-based Gameplay Event, that can activate other abilities or run ability-specific logic

C++ Source:

  • Plugin: GameplayAbilities
  • Module: GameplayAbilities
  • File: GameplayAbilityTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • context_handle (GameplayEffectContextHandle): [Read-Write] Polymorphic context information
  • event_magnitude (float): [Read-Write] The magnitude of the triggering event
  • event_tag (GameplayTag): [Read-Write] Tag of the event that triggered this
  • instigator (Actor): [Read-Write] The instigator of the event
  • instigator_tags (GameplayTagContainer): [Read-Write] Tags that the instigator has
  • optional_object (Object): [Read-Write] An optional ability-specific object to be passed though the event
  • optional_object2 (Object): [Read-Write] A second optional ability-specific object to be passed though the event
  • target (Actor): [Read-Write] The target of the event
  • target_data (GameplayAbilityTargetDataHandle): [Read-Write] The polymorphic target information for the event
  • target_tags (GameplayTagContainer): [Read-Write] Tags that the target has
context_handle

(GameplayEffectContextHandle) – [Read-Write] Polymorphic context information

event_magnitude

(float) – [Read-Write] The magnitude of the triggering event

event_tag

(GameplayTag) – [Read-Write] Tag of the event that triggered this

instigator

(Actor) – [Read-Write] The instigator of the event

instigator_tags

(GameplayTagContainer) – [Read-Write] Tags that the instigator has

optional_object

(Object) – [Read-Write] An optional ability-specific object to be passed though the event

optional_object2

(Object) – [Read-Write] A second optional ability-specific object to be passed though the event

target

(Actor) – [Read-Write] The target of the event

target_data

(GameplayAbilityTargetDataHandle) – [Read-Write] The polymorphic target information for the event

target_tags

(GameplayTagContainer) – [Read-Write] Tags that the target has