I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
UE1:Viewport (UT)
From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 12:37, 15 November 2009 by Wormbo (Talk | contribs) (Created page with '{{infobox class | package = Engine | parent1 = Player | parent2 = Object | nativeonly = yes }} The player class for local players. Since it is a purely native class, it does not …')
Object >> Player >> Viewport (native-only) |
Contents
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 PlayerPawn belongs to the local player by typecasting its Player variable:
if (Viewport(SomePlayerPawn.Player) != None) { // SomePlayerPawn is the local player }
Since splitscreen mode is not supported, there can be only a single PlayerPawn whose Player variable references a Viewport object. On a dedicated server there is never any local player.
See also[edit]
- NetConnection - the player class for remote players