device (abstract tag)

🚧 This article is a stub. You can help expand it by submitting content in pull requests or issues in this wiki's source repo.

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(32)
Flag Mask Comments
position loops 0x1
position not interpolated 0x2
power transition time f32 (seconds)
power acceleration time f32 (seconds)
position transition time f32 (seconds)
position acceleration time f32 (seconds)
depowered position transition time f32 (seconds)
depowered position acceleration time f32 (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
Option Value Comments
none 0x0
power 0x1
change in power 0x2
position 0x3
change in position 0x4
locked 0x5
delay 0x6
device c in enum
Option Value Comments
none 0x0
power 0x1
change in power 0x2
position 0x3
change in position 0x4
locked 0x5
delay 0x6
device d in enum
Option Value Comments
none 0x0
power 0x1
change in power 0x2
position 0x3
change in position 0x4
locked 0x5
delay 0x6
delay time f32 (seconds)
pad(8)
automatic activation radius f32 (world units)
pad(84)
inverse power acceleration time f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
inverse power transition time f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
pad(8)
inverse position acceleration time f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
inverse position transition time f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
pad(4)

This information was partially generated using Invader tag definitions.

Acknowledgements

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

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