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] 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

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

Type

(float)

property damaged_actor

[Read-Write] Damaged actor

Type

(Actor)

property hit_location

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

Type

(Vector)

property instigator

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

Type

(Actor)

property location

[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

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

Type

(Name)