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

ClientHide

Hides the specified object on the connected client. The object becomes invisible locally — the server is not notified and other players still see it.

Returns True if the object was successfully hidden, False otherwise.

Скрывает указанный объект на подключённом клиенте. Объект становится невидимым локально — сервер не уведомляется, другие игроки по-прежнему видят объект.

Возвращает True, если объект успешно скрыт, False в противном случае.

Pascal

function ClientHide(ObjID: Cardinal): Boolean;

Parameters:

  • ObjID — ID of the object to hide on the client.

Python

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

Pascal Example

begin
  // Hide a corpse cluttering the screen
  if ClientHide(corpse_id) then
    AddToSystemJournal('Object hidden on client');
end.

Python Example

if ClientHide(corpse_id):
    AddToSystemJournal('Object hidden on client')

See Also

Hidden, IsHidden