User Tools

Site Tools


4rpl:commands:uselegalunitcells

Index

UseLegalUnitCells

UseLegalUnitCells(<-use)

Description

When 'use' is set to true, unit build and movement will only be allowed on cells specified by the SetLegalUnitCells call. When 'use' is set to false, legalUnitCells are not used. Note that be default all cells are in the disallowed state. So if you call UseLegalUnitCells without calling SetLegalUnitCells, then no place on the map can be used for building or moving.

:!: NOTE: LEGAL UNIT MOVEMENT AND BUILDING IS ONLY IN EFFECT WHEN NOT IN EDIT MODE. IN EDIT MODE YOU MAY STILL BUILD AND MOVE UNITS REGARDLESS.

Examples

UseLegalUnitCells(true)

Index

4rpl/commands/uselegalunitcells.txt · Last modified: 2021/01/19 11:31 by Karsten75