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] Amount: Damage taken by DamagedActor. Note: 0-damage events do not get ignoreddamaged_actor
(Actor): [Read-Write] Damaged Actor: Damaged actorhit_location
(Vector): [Read-Write] Hit Location: Event’s additional spatial information TODO: documentinstigator
(Actor): [Read-Write] Instigator: Actor that instigated damage. Can be Nonelocation
(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: float¶
[Read-Write] Amount: Damage taken by DamagedActor. Note: 0-damage events do not get ignored
- Type:
(float)
- property hit_location: Vector¶
[Read-Write] Hit Location: Event’s additional spatial information TODO: document
- Type:
(Vector)
- property instigator: Actor¶
[Read-Write] Instigator: Actor that instigated damage. Can be None
- Type:
(Actor)