TLO:LineOfSight

From the wonderful RedGuides Wiki

Object that is used to check if there is Line of Sight betwen two locations.

This TLO is added by MacroQuest

Forms

Type Member Description
bool LineOfSight[y,x,z:y,x,z] See if line of sight exists between first and second locations, separated with a :

Access to Types

Type Description
bool Unlike bool in most programming and scripting languages, bool in MacroQuest is unique: Any non-zero value evaluates to true. However, 0 still equals false, and 1 still equals true.

Examples

/echo ${LineOfSight[20,40,-20:100,-300,70]}

Returns TRUE if Line of Sight is clear between the two locations

See also