Scale (Entity Action Type)
Changes a scale that is stored on the entity. The value survives relogs, dimension changes and the power being revoked, exactly like a value set with /apoli:scale. Use the apoli:scale power 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 applies it immediately. |
easing | String | linear | How the change is spread over ticks. See Scale Type for the list. |
scale_type is accepted as another spelling of scale_types.
Every type in the list gets the same operation and the same scale, each measured against its own current value. The types are independent: apoli:model_width and apoli:model_height at 5 make a model five times bigger in every direction, while apoli:model_height alone only stretches it upwards.
Examples
Five times bigger, model only, with the hitbox untouched:
{
"type": "apoli:scale",
"scale_types": [
"apoli:model_width",
"apoli:model_height"
],
"operation": "set",
"scale": 5
}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
}