hastargets
The hastargets command checks whether or not the block has any targets on its list.



"if(hastargets)"


No arguments.



And example of the hastargets command used in a script is as follows...




The following script checks whether or not enemies are in the room first before damaging them.


if(interact)
{
then(cleartarget)
then(addtarget,enemy)
if(hastargets) then(damagetarget,40)
}