Memory Functions
TargetToMem
Takes target object, and puts it into a memory slot
Syntax
TargetToMem [slot]
-- Places target object to [slot] slot
Example
// (Code taken from ai_cashmart_npc.p3s and edited it)
// This will save this entity to the third memory slot, and resets it's target
TargetEntByName target_1floor_zealots
TargetToMem 3
ResetTarget 1
TargetFromMem
Takes an object from a memory slot, and sets it as target
Syntax
TargetFromMem [slot]
-- Takes object from [slot] slot
Example
// (Continuing from TargetToMem's Example)
// This forces the target to be an enemy after taking it out from memory
TargetFromMem 3
Relationship target, enemy, 1
ResetTarget 1
CallerToMem
Takes caller object, and places it into a memory slot (an Event was fired and had a valid caller object)
Syntax
CallerToMem [slot]
-- Places caller object to [slot] slot
ClearMem
Clears a memory slot
Syntax
ClearMem [slot]
-- Clears an object from [slot] slot