What checkTarget asks of a target beyond its being there to act on.
| Property |
Type |
Default value |
Description |
hostile? |
boolean |
false |
Whether it must be hostile, as TargetableTrait’s faction says. |
range? |
number |
undefined |
Metres between the middles of the two it may be at most; left out, any distance. |
sight? |
boolean |
false |
Whether nothing may stand between them, as hasLineOfSight says. |