Class: hit_memory_object
Memory record for a hit received by an entity.
Source
C++ class hit_memory_object : entity_memory_object
Custom Constructor
hit_memory_object
Remarks
Exposed through stalker/monster hit memory. The direction and amount describe the remembered hit, not the current object state.
Extends
Constructors
Constructor
protected new hit_memory_object(): hit_memory_object;Engine-created hit memory record.
Returns
hit_memory_object
Overrides
entity_memory_object.constructor
Methods
object()
object(): game_object;Get the remembered entity.
Returns
Remembered game object.
Remarks
The binding expects the native memory record to still point to a live object.
Inherited from
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
amount
readonly amount: number;Hit power remembered by AI.
bone_index
readonly bone_index: number;Bone that received the hit.
direction
readonly direction: vector;Hit direction.
last_level_time
readonly last_level_time: number;Previous level time recorded for this memory entry.
Inherited from
entity_memory_object.last_level_time
level_time
readonly level_time: number;Level time when this memory entry was last updated.
Inherited from
entity_memory_object.level_time
object_info
readonly object_info: object_params;Snapshot of the remembered entity.
Inherited from
entity_memory_object.object_info
self_info
readonly self_info: object_params;Snapshot of the object that owns this memory.
Inherited from
entity_memory_object.self_info
__name
readonly static __name: string;LuaBind class constructor name.