This page is incomplete! You can contribute information using GitHub issues or pull requests.

Device is an abstract object tag and parent of the device_machine, device_light_fixture, and device_control tags. They are used for objects with on/off states like switches, elevators, and doors.

Structure and fields

FieldTypeComments
device flagsbitfield
FlagMaskComments
position loops0x1
position not interpolated0x2
power transition timefloat
  • Unit: seconds
power acceleration timefloat
  • Unit: seconds
position transition timefloat
  • Unit: seconds
position acceleration timefloat
  • Unit: seconds
depowered position transition timefloat
  • Unit: seconds
depowered position acceleration timefloat
  • Unit: seconds
device a inenum
OptionValueComments
none0x0
power0x1
change in power0x2
position0x3
change in position0x4
locked0x5
delay0x6
device b inenum?
device c inenum?
device d inenum?
open
TagDependency
close
TagDependency
opened
TagDependency
closed
TagDependency
depowered
TagDependency
repowered
TagDependency
delay timefloat
  • Unit: seconds
delay effect
TagDependency
automatic activation radiusfloat
  • Unit: world units

This sets the activation radius for automatic doors. The device must be a device_machine which operates automatically and has "door" machine type. If this value is 0 or negative, the object bounding radius is used instead. This field is known not to be used for any other purposes.

inverse power acceleration timefloat
  • Cache only
inverse power transition timefloat
  • Cache only
inverse depowered position acceleration timefloat
  • Cache only
inverse depowered position transition timefloat
  • Cache only
inverse position acceleration timefloat
  • Cache only
inverse position transition timefloat
  • Cache only
delay time ticksfloat
  • Cache only

Acknowledgements

Thanks to the following individuals for their research or contributions to this topic:

  • Kavawuvi (Invader tag definitions)
  • MosesOfEgypt (Tag structure research)