DataType:switch

From the wonderful RedGuides Wiki

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


This Data Type is referenced in MacroQuest, and accessed by Top-Level Object(s): DoorTarget, Switch, SwitchTarget

Members

Type Member Description
action Target Target the switch
Toggle Toggle the switch
Use
bool IsTargeted
LineOfSight Returns TRUE if the switch is in LoS
Open True if the switch is in the "open" state (State == 1)
float DefaultX X coordinate of "closed" switch
DefaultY Y coordinate of "closed" switch
DefaultZ Z coordinate of "closed" switch
Distance Distance from player to switch in (x,y)
Distance3D
X
Y
Z
heading DefaultHeading Heading of "closed" switch
Heading Switch is facing this heading
HeadingTo Direction player must move to meet this switch
int ID Switch ID
State The "state" of the switch.
string Name

See also