Store Origin (Bi-Entity Action Type)
Bi-entity action — stores the target's origin into the actor's store under a named key.
Reads the target’s origin and writes it into the actor’s store under a named key. The target is not changed — this copies the id, it does not take the origin.
Type ID: origins:store_origin — a bi-entity action. It shares its id and its 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.
Needs the Origins mod. Registered by Origins, not core Apoli. Both the actor and target must be players, and it only runs on the server. See Origin storage for the system as a whole.
Fields
| Field | Type | Default | Purpose |
|---|---|---|---|
key | String | required | The name to store the entry under on the actor. |
layer | Identifier | origins:origin | Which of the target’s layers to read, and the layer recorded with the entry. |
origin | Identifier | optional | Store this origin id literally instead of reading the target’s. |
clear | Boolean | false | Remove the entry at key from the actor instead of writing one. |
Wrap it in apoli:invert to store the actor’s origin onto the target instead.
Examples
Note down what you just hit:
{
"type": "apoli:action_on_hit",
"bientity_action": { "type": "origins:store_origin", "key": "last_victim" }
} Read the actor’s origin but write it to the target’s own store:
{
"type": "apoli:invert",
"action": { "type": "origins:store_origin", "key": "mine" }
}