Entities 1x4l2i

Entities are used in to specify player spawn locations or to add effects, doors, items and more to a map. 6y353

Category: all (50) 4e402g

ID 30 - Env_Building (Build) 3c4x4s

Info g1p6j

Creates a building (or other "Stuff" - see list below) at the tile position.

List of buildings with type IDs (Class 1 and 2 only):
CS2D Dynamic Objects

Note: In case you want to place a laser mine you have to place the entity on a floor tile next to a wall tile. In the properties you have to set the direction of the entity to the direction you want the beam to go (only 0, 90, 180 or 270 degree depending on where the wall is). The laser mine will blow up instantly if you don't adjust these things properly.

Values / Properties 31956

The following values can be set in the entity properties menu of the map editor and can be read using the Lua command entity.

  • ints[0]=building type ID
  • ints[1]=team (0=neutral, 1=terrorists, 2=counter-terrorists)
  • ints[2]=rotation (affects barbed wire and laser mine only)