Developer knowledge network ยท moderated exchange

Komunitas Kode Tidak Dapat Diandalkan

Riset Pengembang, Rekayasa Terbalik & Komunitas Pengkodean

Knowledge indexHidup
4Categories
919Threads
2.8KPostingan
Tutorial

Spectator observer count reading from player observer services

apex_kraber_god
Member
MEMBER
Reputasi: 178
Tanggal Bergabung: Jul 2022
Postingan: 7
Terima kasih: 86
1 bulan yang lalu ยท 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
Reputasi: 72
Tanggal Bergabung: Sep 2019
Postingan: 32
Terima kasih: 16
1 bulan yang lalu ยท 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
Reputasi: 202
Tanggal Bergabung: Apr 2019
Postingan: 54
Terima kasih: 28
1 bulan yang lalu ยท Jul 24, 2026 12:49 AM
#3

Works in both Battle Royale and Mixtape modes.