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 actorhit_location
(Vector): [Read-Write] Event’s additional spatial information document:instigator
(Actor): [Read-Write] Actor that instigated damage. Can be Nonelocation
(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