Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Attack

Attack mobile.

If you are not in War mode, Stealth will switch it on before the attack.

Params:

ObjID : ID of Object. Can be a number (numerical or hex) OR name of object in ObjectsCollection (DWS only - read more about Collections)

DWS\Pascal Script:

procedure Attack(ObjID : Cardinal);

DWS\Pascal Script Example:

if (WarTargetID <> Enemy) then
  attack(Enemy);

Python:

def Attack(AttackedID)