canUseWeapon

canUseWeapon([number weapon], number entity) → boolean canUse
Checks whether your entity can shoot given weapon, targeting given entity.

Determines whether your entity can shoot the entity with id entity with the weapon weapon from its current cell.

The function checks the following points:

The function does not check whether you have enough TP for the weapon's cost, or whether the weapon is equipped.

Parameters
Return
See also