S&box Wiki

Sandbox.Entity.IsLocalPawn

Syntax

bool IsLocalPawn { get; }

Description

Will return true if we're clientside, this entity has an owner and we're currently treating this owner as the local client. This means the player could be being spectated.