SetAreaScaling(int area, int min, int max)
Changes walkable area number AREA's scaling.
There are two ways to use this command:
1. Pass the same value for MIN and MAX. This will give the walkable area fixed
scaling (same as setting it in the editor with "Use continuous scaling" un-ticked).
2. Pass different values for MIN and MAX. In this case, continuous scaling is
enabled for the walkable area, and will go from MIN at the top to MAX at the bottom.
MIN and MAX have ranges from 5 to 200, the same as in the editor. Pass 100 for both values
to revert to the normal zoom level (100%) for that area.
Example:
SetAreaScaling(5, 120, 170);
will set walkable area 5 to use continuous scaling from 120 to 170 percent.
See Also: GetScalingAt, GetWalkableAreaAt
|