unreal.AIDamageEvent

class unreal.AIDamageEvent(amount=1.0, location=[3.4028234663852886e+38, 3.4028234663852886e+38, 3.4028234663852886e+38], hit_location=[3.4028234663852886e+38, 3.4028234663852886e+38, 3.4028234663852886e+38], damaged_actor=None, instigator=None, tag='None')

Bases: unreal.StructBase

AIDamage Event

C++ Source:

  • Module: AIModule

  • File: AISense_Damage.h

Editor Properties: (see get_editor_property/set_editor_property)

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

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

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

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

  • location (Vector): [Read-Write] Location: 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] Tag: Optional named identifier for the damage.

property amount

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

Type

(float)

property damaged_actor

[Read-Write] Damaged Actor: Damaged actor

Type

(Actor)

property hit_location

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

Type

(Vector)

property instigator

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

Type

(Actor)

property location

[Read-Write] Location: 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

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

Type

(Name)