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

GetActiveAbility

Returns the name of the character’s currently active combat ability as a string.

If no ability is active, returns '0'.

Возвращает имя текущей активной боевой способности персонажа в виде строки.

Если способность не активна, возвращает '0'.

Pascal

function GetActiveAbility: String;

Python

def GetActiveAbility() -> str: ...

Pascal Example

begin
  if GetActiveAbility = '0' then
    UsePrimaryAbility;
end.

Python Example

if GetActiveAbility() == '0':
    UsePrimaryAbility()

See Also

UsePrimaryAbility, UseSecondaryAbility