USE_INVALID_TARGET

USE_INVALID_TARGET = -1
Value returned by the useWeapon, useWeaponOnCell, useChip and useChipOnCell functions if the target does not exist, if the entity cannot act (in a hook such as beforeFight()) or if the weapon or chip is not equipped. Also returned when a weapon targets your own entity or its cell, and for a teleport onto an occupied cell.