/tg/ Station 13 - Modules - TypesDefine Details

code/__HELPERS/memory_helpers.dm

add_memory_in_rangeAdds a memory to all carbon mobs in a certain range of a certain atom.
/proc/_add_memory_in_rangeUnless you need to use this for an explicit reason, use the add_memory_in_range macro wrapper.
add_mob_memoryAdds a memory to the target mob.
add_memoryAdds a memory to the target mind.

Define Details

add_memory

Adds a memory to the target mind.

The first argument should be a typepath of a /datum/memory.

If the mob already has a memory of that type, it will be deleted.

Beyond that, can be supplied with named arguments pertaining to your memory type. Common arguments include:

Returns the datum memory created, or null otherwise.

add_memory_in_range

Adds a memory to all carbon mobs in a certain range of a certain atom.

The third argument should be a typepath of a /datum/memory.

Two things of note when using this:

Beyond that, can be supplied with named arguments pertaining to your memory type. Common arguments include:

add_mob_memory

Adds a memory to the target mob.

The first argument should be a typepath of a /datum/memory.

If the mob already has a memory of that type, it will be deleted.

Beyond that, can be supplied with named arguments pertaining to your memory type. Common arguments include:

Returns the datum memory created, or null otherwise.