HolyLib Wiki

CHLTVClient

CHLTVClient

This class directly represents the CHLTVClient object in c++
It inherits all functions of the CBaseClient class.

Metatable function Description
__tostring Returns a formated string of the CHLTVClient -> CHLTVClient [userID][clientName]
__index Used to allow one to access saved lua data on the object
__newindex Used to allow one to save lua data on the object

Methods

CHLTVClient:SetCameraMan( number entityIndex )
Sends the hltv_cameraman event to the specific client and blocks the HLTVDirector from changing the view.
Call it with 0 / NULL to reset it and let the HLTVDirector take control again.