Player/GetObserverTarget

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Noted no value return)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=GetObserverTarget
+
|Description=Returns the entity the player is currently observing. Returns "no value" if the player has no target.
|Parent=Player
+
|Description=Returns the entity the player is currently observing.
+
  
 
Set using {{ClassFunction|Player|SpectateEntity}}.
 
Set using {{ClassFunction|Player|SpectateEntity}}.

Revision as of 21:54, 12 April 2017

 Player:GetObserverTarget( )

Description

Returns the entity the player is currently observing. Returns "no value" if the player has no target.

Set using Player:SpectateEntity.

Returns

Entity

The entity the player is currently spectating.
Personal tools
Navigation