Skip to content

switch

Data related to switches (levers, buttons, etc) in the zone

Members

Type Member Description
float D D coordinate (Upward-positive)
heading DefaultHeading Heading of "closed" switch
float DefaultN Y coordinate of "closed" switch (Northward-positive)
float DefaultU Z coordinate of "closed" switch (Upward-positive)
float DefaultW X coordinate of "closed" switch (Westward-positive)
float DefaultX X coordinate of "closed" switch
float DefaultY Y coordinate of "closed" switch
float DefaultZ Z coordinate of "closed" switch
float Distance Distance from player to switch in (x,y)
heading Heading Switch is facing this heading
heading HeadingTo Direction player must move to meet this switch
int ID Switch ID
bool LineOfSight Returns TRUE if the switch is in LoS
float N Y coordinate (Northward-positive)
string Name Name
bool Open True if the switch is in the "open" state (State == 1)
int State The "state" of the switch.
float W X coordinate (Westward-positive)
float X X coordinate
float Y Y coordinate
float Z Z coordinate
string ToString Same as ID