Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

개발자 연구, 리버스 엔지니어링 및 코딩 커뮤니티

Knowledge index살다
4Categories
919Threads
2.8K게시물
Tutorial

Spectator observer count reading from player observer services

apex_kraber_god
Member
MEMBER
대표: 178
가입 날짜: Jul 2022
게시물: 7
감사해요: 86
1개월 전 · Jul 23, 2026 5:25 AM
#1

To check if someone is spectating your POV in Apex:

  1. Iterate entity list from 0 to 64.
  2. For each player entity, check if m_lifeState != 0 (player is dead).
  3. Read m_hObserverTarget handle from observer services.
  4. If target handle matches your LocalPlayer entity handle, increment spectator counter.
CPP
if (spectatorCount > 0) {
    DrawWarning(Format("SPECTATORS WATCHING: %d", spectatorCount), COLOR_RED);
}
raycast_ryan
Ballistics Dev
MEMBER
대표: 72
가입 날짜: Sep 2019
게시물: 32
감사해요: 16
1개월 전 · Jul 23, 2026 7:04 AM
#2

A must-have feature for toggling smoothing/legit settings whenever an enemy spectator is watching your gameplay.

imgui_artisan
UI Designer
MEMBER
대표: 202
가입 날짜: Apr 2019
게시물: 54
감사해요: 28
1개월 전 · Jul 24, 2026 12:49 AM
#3

Works in both Battle Royale and Mixtape modes.