Skip to main content

Store Origin (Bi-Entity Action Type)

Reads the target's origin and writes it into the actor's store under a named key. The target isn't changed, since this only copies the ID.

Type ID: origins:store_origin

It shares its ID and fields with the entity action of the same name. Which one you get depends on whether you write it in a bientity_action field or an entity_action field.

note

This action comes from the Origins mod. Both the actor and the target must be players, and it only runs on the server. See Origin storage for the whole system.

Fields

FieldTypeDefaultDescription
keyStringrequiredThe name to store the entry under on the actor.
layerIdentifierorigins:originThe target's layer to read, which is also recorded with the entry.
originIdentifieroptionalStores this origin ID as given instead of reading the target's.
clearBooleanfalseRemoves the entry at key from the actor instead of writing one.

Wrap it in apoli:invert to store the actor's origin on the target instead.

Examples

{
  "type": "apoli:action_on_hit",
  "bientity_action": { "type": "origins:store_origin", "key": "last_victim" }
}

This power remembers the origin of whoever you hit under last_victim.

{
  "type": "apoli:invert",
  "action": { "type": "origins:store_origin", "key": "mine" }
}

This reads the actor's origin and writes it to the target's own store, under mine.