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

FieldTypeDefaultDescription
scale_typesScale Type or Array of themapoli:baseWhich scales to change.
operationStringsetset, add, subtract, multiply, divide or power.
scaleFloat or Expression1The right-hand side of the operation.
ticksInteger or Expression0How long the change takes. 0 snaps immediately.
easingStringlinearHow 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
}