Knowledgebase Article 35


creating item selection filters for the mapeditor

Items like VehicleTypes, ObjectTypes, BuildingTypes and TerrainTypes can be selected through lists in the mapeditor. To make selection easier, you can restrict the displaying of these items through filters, for example to display only VehicleTypes that belong to a certain UnitSet.

These filters are defined by .ASCTXT files and have the following form:

itemfilter {
   Vehicles = 0 1 2 3 4
   Buildings = 0-4
   Objects = 2000-4999 5000-5005
   Terrain =
   name = This is the name of the filter
   activated = true 
} itemfilter

An activated filter will inhibit the selectability of the items it covers. The activated variable specifies the status of the filter after the editor has been started.

Last change: Sat, 2003-02-01 8:46


search knowledgebase
browse knowledgebase