unreal.GameplayEventData

class unreal.GameplayEventData(event_tag: GameplayTag = Ellipsis, instigator: Actor = Ellipsis, target: Actor = Ellipsis, optional_object: Object = Ellipsis, optional_object2: Object = Ellipsis, context_handle: GameplayEffectContextHandle = [], instigator_tags: GameplayTagContainer = Ellipsis, target_tags: GameplayTagContainer = Ellipsis, event_magnitude: float = 0.0, target_data: GameplayAbilityTargetDataHandle = [])

Bases: 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] Context Handle: Polymorphic context information

  • event_magnitude (float): [Read-Write] Event Magnitude: The magnitude of the triggering event

  • event_tag (GameplayTag): [Read-Write] Event Tag: Tag of the event that triggered this

  • instigator (Actor): [Read-Write] Instigator: The instigator of the event

  • instigator_tags (GameplayTagContainer): [Read-Write] Instigator Tags: Tags that the instigator has

  • optional_object (Object): [Read-Write] Optional Object: An optional ability-specific object to be passed though the event

  • optional_object2 (Object): [Read-Write] Optional Object 2: A second optional ability-specific object to be passed though the event

  • target (Actor): [Read-Write] Target: The target of the event

  • target_data (GameplayAbilityTargetDataHandle): [Read-Write] Target Data: The polymorphic target information for the event

  • target_tags (GameplayTagContainer): [Read-Write] Target Tags: Tags that the target has

property context_handle: GameplayEffectContextHandle

[Read-Write] Context Handle: Polymorphic context information

Type:

(GameplayEffectContextHandle)

property event_magnitude: float

[Read-Write] Event Magnitude: The magnitude of the triggering event

Type:

(float)

property event_tag: GameplayTag

[Read-Write] Event Tag: Tag of the event that triggered this

Type:

(GameplayTag)

property instigator: Actor

[Read-Write] Instigator: The instigator of the event

Type:

(Actor)

property instigator_tags: GameplayTagContainer

[Read-Write] Instigator Tags: Tags that the instigator has

Type:

(GameplayTagContainer)

property optional_object: Object

[Read-Write] Optional Object: An optional ability-specific object to be passed though the event

Type:

(Object)

property optional_object2: Object

[Read-Write] Optional Object 2: A second optional ability-specific object to be passed though the event

Type:

(Object)

property target: Actor

[Read-Write] Target: The target of the event

Type:

(Actor)

property target_data: GameplayAbilityTargetDataHandle

[Read-Write] Target Data: The polymorphic target information for the event

Type:

(GameplayAbilityTargetDataHandle)

property target_tags: GameplayTagContainer

[Read-Write] Target Tags: Tags that the target has

Type:

(GameplayTagContainer)