Skip to content

Tower ​

The Tower class extends NPC with tower attack-target APIs.

NOTE

This page documents members declared directly on Tower. Inherited members are available from NPC.


Methods ​

GetAttackTargetIndex()number ​

Retrieves the attack target index.

Returned:

  • number - The requested attack target index.

GetAttackTarget()NPC | null ​

Retrieves the attack target.

Returned:

  • NPC | null - The matching object, or null if it is not available.