Skip to content

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 ​

ts
protected new hit_memory_object(): hit_memory_object;

Engine-created hit memory record.

Returns ​

hit_memory_object

Overrides ​

entity_memory_object.constructor

Methods ​

object() ​

ts
object(): game_object;

Get the remembered entity.

Returns ​

game_object

Remembered game object.

Remarks ​

The binding expects the native memory record to still point to a live object.

Inherited from ​

entity_memory_object.object

Properties ​

__name ​

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from ​

entity_memory_object.__name


amount ​

ts
readonly amount: number;

Hit power remembered by AI.


bone_index ​

ts
readonly bone_index: number;

Bone that received the hit.


direction ​

ts
readonly direction: vector;

Hit direction.


last_level_time ​

ts
readonly last_level_time: number;

Previous level time recorded for this memory entry.

Inherited from ​

entity_memory_object.last_level_time


level_time ​

ts
readonly level_time: number;

Level time when this memory entry was last updated.

Inherited from ​

entity_memory_object.level_time


object_info ​

ts
readonly object_info: object_params;

Snapshot of the remembered entity.

Inherited from ​

entity_memory_object.object_info


self_info ​

ts
readonly self_info: object_params;

Snapshot of the object that owns this memory.

Inherited from ​

entity_memory_object.self_info


__name ​

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from ​

entity_memory_object.__name