Entities

Entities can be used in the map editor to specify player spawn locations or to add effects, doors, items and more.

Category: all (50)

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
  • 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 covers player? ("" for no, "1" for yes)
  • strs[5]=hide if nightvision is on? ("" for no, "1" for yes)