Observer

Observer mode management class.

Type: Reference type

Methods

Declaration Description
CBaseEntity@ GetObserverTarget() Gets the current observer target, if any.
void ResetObserverTarget() Resets the observer target and finds the next suitable candidate.
void SetObserverTarget(CBasePlayer@ pPlayer) Sets the observer target.
bool CanUseObserver() Returns whether this player can use observer mode.
bool IsObserver() const Returns whether this player is an observer.
void StartObserver(const Vector& in vecPosition, const Vector& in vecViewAngle, bool fCreateBody = true) Starts observer mode.
void StopObserver(bool fRespawn) Stops observer mode.
void FindNextPlayer(bool fReverse) Find the next player to observe.
void HandleButtons() Handles button input.
void SetMode(ObserverMode iMode) Sets the observer mode.
CBaseEntity@ FindObserverStartPoint() Find a point to start a player at for observer.
bool HasCorpse() Returns whether this player has a corpse.
bool CanControlObserverMode() const Returns whether this player can control the observer mode.
void SetObserverModeControlEnabled(bool fEnabled) Sets whether this player can control the observer mode.
void RemoveDeadBody() Removes the player's dead body, if it exists.