Skip to content

40 — Resize Player View...

Replaces the playable area with the rectangle given and announces that new terrain is available.

Editor data
Numeric ID
40
Engine ID
TACTION_RESIZE_PLAYER_VIEW
Editor name
Resize Player View...
Need token
NEED_RECT
Parameters
  1. Rectanglerectangle
Attachment
none
INI example
[Actions]
<TriggerID>=1,40,0,0,<Rectangle X>,<Rectangle Y>,<Rectangle width>,<Rectangle height>,

Every cell’s attributes are recalculated, the movement zones and subzones are rebuilt, the radar map is resized and refreshed, and every structure’s position on it is worked out again.

Valid values

  • Four numbers in cells, giving the origin and then the width and height of the new playable area.
Caveats
  • The rectangle is stored exactly as written. The clipping into the playfield, the two-cell origin minimum and the edge insets that LocalSize goes through are applied when the map is read and not here.
  • Nothing is re-locked to the new area, so widening it uncovers no ground at once. A vehicle or infantryman standing in newly opened ground takes the lock up again the next time it reaches the center of a cell inside the area, and a structure keeps whatever it was given where it was placed.
  • The new terrain announcement plays on every firing, whether the rectangle changed anything or not.