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

UE3:LocalPlayer (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Player >> LocalPlayer
Package: 
Engine
Within class: 
Engine
This class in other games:
UDK

LocalPlayer Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties[edit]

ActorVisibilityHistory[edit]

Type: SynchronizedActorVisibilityHistory

Modifiers: private, native, transient, const


bOverridePostProcessSettings[edit]

Type: bool

Whether to override the post process settings or not

bSentSplitJoin[edit]

Type: bool

Modifiers: const, editconst, transient

set when we've sent a split join request

ControllerId[edit]

Type: int

The controller ID which this player accepts input from.

CurrentPPInfo[edit]

Type: CurrentPostProcessVolumeInfo

Modifiers: const, noimport, transient

current state of post process info set in the scene

LastViewLocation[edit]

Type: Object.Vector

Modifiers: transient

The location of the player's view the previous frame.

Origin[edit]

Type: Object.Vector2D

The coordinates for the upper left corner of the master viewport subregion allocated to this player. 0-1

PlayerPostProcess[edit]

Type: PostProcessChain

Modifiers: const

Chain of post process effects for this player view

PlayerPostProcessChains[edit]

Type: array<PostProcessChain>

Modifiers: const


PostProcessSettingsOverride[edit]

Type: PostProcessVolume.PostProcessSettings

The post process settings to override to

Default value:

Member Value
bEnableBloom True
bEnableSceneEffect True
Bloom_InterpolationDuration 1.0
Bloom_Scale 1.0
DOF_BlurKernelSize 16.0
DOF_FalloffExponent 4.0
DOF_FocusInnerRadius 2000.0
DOF_InterpolationDuration 1.0
DOF_MaxFarBlurAmount 1.0
DOF_MaxNearBlurAmount 1.0
DOF_ModulateBlurColor
Member Value
A 255
B 255
G 255
R 255
MotionBlur_Amount 0.5
MotionBlur_CameraRotationThreshold 45.0
MotionBlur_CameraTranslationThreshold 10000.0
MotionBlur_FullMotionBlur True
MotionBlur_InterpolationDuration 1.0
MotionBlur_MaxVelocity 1.0
Scene_HighLights
Member Value
X 1.0
Y 1.0
Z 1.0
Scene_InterpolationDuration 1.0
Scene_MidTones
Member Value
X 1.0
Y 1.0
Z 1.0

PPSettingsOverrideStartBlend[edit]

Type: float

The start time of the post process override blend

Size[edit]

Type: Object.Vector2D

The size of the master viewport subregion allocated to this player. 0-1

ViewportClient[edit]

Type: GameViewportClient

The master viewport containing this player's view.

ViewState[edit]

Type: pointer{FSceneViewStateInterface}

Modifiers: private, native, const


Structs[edit]

CurrentPostProcessVolumeInfo[edit]

Modifiers: native

PostProcessVolume.PostProcessSettings LastSettings 
Last pp settings used when blending to the next set of volume values.
PostProcessVolume LastVolumeUsed 
The last post process volume that was applied to the scene
float BlendStartTime 
Time when a new post process volume was set
float LastBlendTime 
Time when the settings blend was last updated.

SynchronizedActorVisibilityHistory[edit]

pointer State 
pointer CriticalSection 

Functions[edit]

Native functions[edit]

GetActorVisibility[edit]

native final function bool GetActorVisibility (Actor TestActor) const

Tests the visibility state of an actor in the most recent frame of this player's view to complete rendering.

Parameters:

  • TestActor - The actor to check visibility for.

Returns:

True if the actor was visible in the frame.

GetPostProcessChain[edit]

native function PostProcessChain GetPostProcessChain (int InIndex)

Get the PPChain at the given index.

Parameters:

  • InIndex - The index of the chain to retrieve.

Returns:

PostProcessChain The post process chain if found; NULL if not.

InsertPostProcessingChain[edit]

native function bool InsertPostProcessingChain (PostProcessChain InChain, int InIndex, bool bInClone)

Add the given post process chain to the chain at the given index.

Parameters:

  • InChain - The post process chain to insert.
  • InIndex - The position to insert the chain in the complete chain. If -1, insert it at the end of the chain.
  • bInClone - If TRUE, create a deep copy of the chains effects before insertion.

Returns:

boolean TRUE if the chain was inserted FALSE if not

RemoveAllPostProcessingChains[edit]

native function bool RemoveAllPostProcessingChains ()

Remove all post process chains.

Returns:

boolean TRUE if the chain array was cleared FALSE if not

RemovePostProcessingChain[edit]

native function bool RemovePostProcessingChain (int InIndex)

Remove the post process chain at the given index.

Parameters:

  • InIndex - The position to insert the chain in the complete chain.

Returns:

boolean TRUE if the chain was removed FALSE if not

SendSplitJoin[edit]

native final function SendSplitJoin ()

sends a splitscreen join command to the server to allow a splitscreen player to connect to the game the client must already be connected to a server for this function to work

Note: this happens automatically for all viewports that exist during the initial server connect so it's only necessary to manually call this for viewports created after that if the join fails (because the server was full, for example) all viewports on this client will be disconnected

SpawnPlayActor[edit]

native final function bool SpawnPlayActor (string URL, out string OutError)

Creates an actor for this player.

Parameters:

  • URL - The URL the player joined with.
  • OutError - If an error occurred, returns the error description.

Returns:

False if an error occurred, true if the play actor was successfully spawned.

TouchPlayerPostProcessChain[edit]

native function TouchPlayerPostProcessChain ()

Forces the PlayerPostProcess chain to be rebuilt. This should be called if a PPChain is retrieved using the GetPostProcessChain, and is modified directly.

Other instance functions[edit]

ClearPostProcessSettingsOverride[edit]

simulated function ClearPostProcessSettingsOverride ()

Clear the overriding of the post process settings.

OverridePostProcessSettings[edit]

simulated function OverridePostProcessSettings (PostProcessVolume.PostProcessSettings OverrideSettings, float StartBlendTime)

Overrides the current post process settings.

SetControllerId[edit]

final function SetControllerId (int NewControllerId)

Changes the ControllerId for this player; if the specified ControllerId is already taken by another player, changes the ControllerId for the other player to the ControllerId currently in use by this player.

Parameters:

  • NewControllerId - the ControllerId to assign to this player.

UpdateOverridePostProcessSettings[edit]

simulated function UpdateOverridePostProcessSettings (PostProcessVolume.PostProcessSettings OverrideSettings)

Update the override post process settings