CancelAttack()
From ElectronicWar
| Function information for cancelAttack() | |
| Function | cancelAttack() |
| Parameters | N/A |
| API | Attack |
| Cost | $50 |
| Level | 10 |
| CPU Usage | 2 |
| Description | Cancels the attack currently being performed on a target's port. |
[edit] Example
cancelAttack() can be used to prevent your system from overheating in the event that the target has a counterattack or attacking firewall:
if(getHP()<30 && getTargetHP()>30){ cancelAttack(); message(getSourceIP(),"Attack was cancelled: Your port HP fell quicker than the Target port."); }

