GetDirection
Returns the facing direction (0–7) of the mobile with ObjID.
See Directions for direction values.
Note: A value of
0(North) can be either a real direction or the default value for a disconnected/unknown character.
Возвращает направление (0–7), в котором обращён мобайл с ObjID.
См. Directions для значений направлений.
Примечание: Значение
0(North) может быть как реальным направлением, так и значением по умолчанию для неподключённого/неизвестного персонажа.
function GetDirection(ObjID: Cardinal): Byte;
Parameters:
- ObjID — ID of the mobile.
def GetDirection(ObjID: int) -> int: ...
begin
AddToSystemJournal('My direction: ' + IntToStr(GetDirection(Self)));
end.
AddToSystemJournal(f'My direction: {GetDirection(Self())}')