device (abstract tag)

🚧 This incomplete article needs help! Please submit tips and info by pull requests or issues or contacting a maintainer.

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

This tag inherits fields from object which are not shown here. See the parent's page for more information. The following information is unique to the device tag.

Field Type Comments
device flags bitfield
Flag Mask Comments
position loops 0x1
position not interpolated 0x2
power transition time float
  • Unit: seconds
power acceleration time float
  • Unit: seconds
position transition time float
  • Unit: seconds
position acceleration time float
  • Unit: seconds
depowered position transition time float
  • Unit: seconds
depowered position acceleration time float
  • Unit: seconds
device a in enum
Option Value Comments
none 0x0
power 0x1
change in power 0x2
position 0x3
change in position 0x4
locked 0x5
delay 0x6
device b in enum?
device c in enum?
device d in enum?
open
TagDependency
close
TagDependency
opened
TagDependency
closed
TagDependency
depowered
TagDependency
repowered
TagDependency
delay time float
  • Unit: seconds
delay effect
TagDependency
automatic activation radius float
  • Unit: world units
inverse power acceleration time float
  • Cache only
inverse power transition time float
  • Cache only
inverse depowered position acceleration time float
  • Cache only
inverse depowered position transition time float
  • Cache only
inverse position acceleration time float
  • Cache only
inverse position transition time float
  • Cache only
delay time ticks float
  • Cache only

Acknowledgements

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

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