SwitchAttack()

From ElectronicWar

Jump to: navigation, search
Function information for switchAttack()
Function switchAttack()
Parameters N/A
API Attack
Cost $1000
Level 50
CPU Usage 10
Description Switches an attack from targeting the current port to targeting the next port in an array of secondary targets.


[edit] Basic Attack Example

switchattack();

If placed in the finalize event of an attack script, this will just keep switching over to each of the Secondary ports you specified in the attack options.

Personal tools