facing

Returns if the player is facing the unit.

facing(unit) : boolean

Example

if facing('target') then
-- cast direction spell
end