Talk:Left 4 Dead 2/Scripting/Script Functions/ClientPrint

From Valve Developer Community
Jump to navigation Jump to search

I was able to use this in HL2EP1:

CBasePlayer* pPlayer = ToBasePlayer(GetOwner());

ClientPrint(pPlayer, HUD_PRINTCENTER, "MESSAGE GOES HERE");

--Ninjaofsauce (talk) 12:17, 20 September 2026 (PDT)

Thats actual game code, not vscript. Hl2ep1 doesn't have scripting, and scripts don't have pointers.
— SirYodaJedi (talk) 03:27, 21 September 2026 (PDT)