# SetObjectScalePermanent

## Description

Modifies the object size in the X, Y, and Z directions. This modifies the object's vertices which makes this a permanent change, and is slower than SetObjectScale. This command does not read or affect the values set with SetObjectScale so using SetObjectScale(ID,2,2,2) and then setting a permanent scale of 3,3,3 would still draw the object 2 times bigger than normal, which means 6 times bigger than when you started. This command does not affect any child objects that may have been loaded with it, nor any objects attached to it with FixObjectToObject. This command will work on bone animated objects as long as the scale is uniform, i.e. the X, Y, and Z scale values are all the same.

## Definition

SetObjectScalePermanent( objID, x, y, z )

void agk::SetObjectScalePermanent( UINT objID, float x, float y, float z )

## Parameters

- objID - The ID of the object to modify.
- x - The amount to scale the object on the X axis.
- y - The amount to scale the object on the Y axis.
- z - The amount to scale the object on the Z axis.