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

IsNPC

Check if the object with ID ObjID is mobile or not.

If object is mobile - will return True.

If disconnected, or object not exists, or object not a mobile - will return False.

Pascal

function IsNPC(ObjID : Cardinal) : Boolean;

Python

def IsNPC(ObjID) -> boolean