Player/GetObserverTarget

From Garry's Mod
Jump to: navigation, search
 Player:GetObserverTarget( )

Description

Returns the entity the player is currently observing.

Set using Player:SpectateEntity.

Returns

Entity

The entity the player is currently spectating, or NULL if the player has no target.
Personal tools
Navigation