unreal.AIDamageEvent

class unreal.AIDamageEvent(amount: float = 0.0, location: Vector = Ellipsis, hit_location: Vector = Ellipsis, damaged_actor: Actor = Ellipsis, instigator: Actor = Ellipsis, tag: Name = 'None')

Bases: StructBase

AIDamage Event

C++ Source:

  • Module: AIModule

  • File: AISense_Damage.h

Editor Properties: (see get_editor_property/set_editor_property)

  • amount (float): [Read-Write] Damage taken by DamagedActor. Note: 0-damage events do not get ignored

  • damaged_actor (Actor): [Read-Write] Damaged actor

  • hit_location (Vector): [Read-Write] Event’s additional spatial information TODO: document

  • instigator (Actor): [Read-Write] Actor that instigated damage. Can be None

  • location (Vector): [Read-Write] Event’s “Location”, or what will be later treated as the perceived location for this sense.

    If not set, HitLocation will be used, if that is unset too DamagedActor’s location

  • tag (Name): [Read-Write] Optional named identifier for the damage.

property amount: float

[Read-Write] Damage taken by DamagedActor. Note: 0-damage events do not get ignored

Type:

(float)

property damaged_actor: Actor

[Read-Write] Damaged actor

Type:

(Actor)

property hit_location: Vector

[Read-Write] Event’s additional spatial information TODO: document

Type:

(Vector)

property instigator: Actor

[Read-Write] Actor that instigated damage. Can be None

Type:

(Actor)

property location: Vector

[Read-Write] Event’s “Location”, or what will be later treated as the perceived location for this sense. If not set, HitLocation will be used, if that is unset too DamagedActor’s location

Type:

(Vector)

property tag: Name

[Read-Write] Optional named identifier for the damage.

Type:

(Name)