Scale (Entity Action Type)
Sets, changes or animates one of the entity's stored scales.
Changes a scale that is stored on the entity — it survives relogs, dimension changes and the power being revoked, exactly like a value set with /apoli:scale. Use apoli:scale instead when the size should only last as long as the power.
Type ID: apoli:scale
Fields
| Field | Type | Default | Description |
|---|---|---|---|
scale_types | Scale Type or Array of them | apoli:base | Which scales to change. |
operation | String | set | set, add, subtract, multiply, divide or power. |
scale | Float or Expression | 1 | The right-hand side of the operation. |
ticks | Integer or Expression | 0 | How long the change takes. 0 snaps immediately. |
easing | String | linear | How the change is spread over ticks. See Scale Type for the list. |
scale_type is accepted as a spelling of scale_types.
Examples
Shrink to a quarter over two seconds:
{
"type": "apoli:scale",
"scale_types": "apoli:base",
"operation": "set",
"scale": 0.25,
"ticks": 40,
"easing": "ease_out_cubic"
} Grow by ten percent each time the action runs:
{
"type": "apoli:scale",
"operation": "multiply",
"scale": 1.1,
"ticks": 10
} Put it back:
{
"type": "apoli:scale",
"operation": "set",
"scale": 1
}