Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:Viewport (UT2003)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:05, 24 October 2009 by Wormbo (Talk | contribs) (same as UT2004 version)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT2003 Object >> Player >> Viewport (native-only)

Contents

Package: 
Engine
This class in other games:
UT, UT2004

The player class for local players. Since it is a purely native class, it does not expose any additional members for use at the UnrealScript level.

Usage[edit]

The most common use for this class in custom UnrealScript code is to check whether a certain PlayerController belongs to the local player by typecasting its Player variable:

if (Viewport(SomePlayerController.Player) != None) {
  // SomePlayerController is the local player
}

Since splitscreen mode is not supported, there can be only a single PlayerController whose Player variable references a Viewport object. On a dedicated server there is never any local player.

See also[edit]