Entities

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

Category: all (50)

ID 22 - Env_Sprite (Spr)

Info

Renders a sprite on the map.

Values / Properties

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]=x size
  • ints[1]=y size
  • ints[2]=x offset
  • ints[3]=y offset
  • ints[4]=rotation
  • ints[5]=color red (0-255)
  • ints[6]=color green (0-255)
  • ints[7]=color blue (0-255)
  • ints[8]=FX mode (deprecated, does nothing)
  • ints[9]=Blend mode (1=solid, 2=masked, 3=light, 4=shade, 5=auto, 6=grayscale)
  • strs[0]=image file path
  • strs[1]=transparency (0.0-1.0)
  • strs[2]=mask mode
  • strs[3]=rotation speed
  • strs[4]=sprite covered by player? ("" for no, "1" for yes)
  • strs[5]=hide if nightvision is on? ("" for no, "1" for yes)
  • strs[6]=3D height in pixels ("" or "0" for no 3D height)
  • strs[7]=affect lighting? ("" for no, "1" for yes)
  • strs[8]=is decoration? ("" for no, "1" for yes)