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

IsRunning

Returns True if the specified мобайл is currently running, False otherwise.

ObjID — ID of the мобайл to check.

Returns False if the object does not exist or the character is disconnected.

Возвращает True, если указанный мобайл в данный момент бежит, иначе False.

ObjID — ID мобайла для проверки.

Возвращает False, если объект не существует или персонаж не подключён.

Pascal

function IsRunning(ObjID: Cardinal): Boolean;

Python

def IsRunning(ObjID: int) -> bool: ...

Pascal Example

begin
  if IsRunning(LastTarget) then
    AddToSystemJournal('Target is running')
  else
    AddToSystemJournal('Target is walking or standing still');
end.

Python Example

if IsRunning(LastTarget()):
    AddToSystemJournal('Target is running')
else:
    AddToSystemJournal('Target is walking or standing still')

See Also

GetDirection, IsWarMode