Skip to main content

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

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 applies it immediately.
easingStringlinearHow 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
}