The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

Legacy:NetConnection

From Unreal Wiki, The Unreal Engine Documentation Site

Revision as of 05:13, 10 September 2002 by Krash (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Object >> Player >> NetConnection

This class represents a Player playing remotely (i.e. connected to the server Unreal is running on). Also used for Demo Recording. Useful if you wish to detect if a playerpawn is controlled remotely.

if (Viewport(SomePlayerPawn.Player)!=none)
  //This player is controlled locally.
else if (NetConnection(SomePlayerPawn.Player)!=none)
  // This player is controlled remotely.
else
  // This player is not controlled by anybody yet...