cansee

Returns if the given unit can see the other given unit. This is a LOS check.

cansee(unita, unitb) : boolean
-- alts
canSee(unita, unitb) : boolean

Example

if cansee('player', 'target') then
-- Do something
end