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)

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. 0-damage events do not get ignored:

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

  • hit_location (Vector): [Read-Write] Event’s additional spatial information 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

property amount

[Read-Write] Damage taken by DamagedActor. 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 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)