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

IsFemale

Returns True if the specified мобайл has the female flag set, 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 IsFemale(ObjID: Cardinal): Boolean;

Python

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

Pascal Example

begin
  if IsFemale(Self) then
    AddToSystemJournal('Character is female')
  else
    AddToSystemJournal('Character is male');
end.

Python Example

if IsFemale(Self()):
    AddToSystemJournal('Character is female')
else:
    AddToSystemJournal('Character is male')

See Also

Sex, IsNPC, GetNotoriety