CheckForWatch()

From ElectronicWar

Jump to: navigation, search
Function information for checkForWatch()
Function checkForWatch()
Parameters None
API Attacking
Cost $2000
Level 50
CPU Usage 5
Description Returns a boolean stating whether or not a watch is observing the port being attacked.


[edit] Attack Example

checkForWatch() can be used in attack scripts to cancel your attack if the port in question is being observer

if(checkForWatch() = true){
  cancelAttack();
}

This would automatically cancel the attack if the target port is being watched. To improve this script you could use message() or logMessage() to inform the attacker that the script has been cancelled because of a watch.

Personal tools