Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
Include |
#include "GameFramework/PlayerController.h" |
class APlayerController : public AController
PlayerControllers are used by human players to control Pawns.
ControlRotation (accessed via GetControlRotation()), determines the aiming orientation of the controlled Pawn.
In networked games, PlayerControllers exist on the server for every player-controlled pawn, and also on the controlling client's machine. They do NOT exist on a client's machine for pawns controlled by remote players elsewhere on the network.
Name | Description | ||
---|---|---|---|
|
APawn * |
AcknowledgedPawn |
Used in net games so client can acknowledge it possessed a specific pawn. |
|
ActiveForceFeedbackEffects |
||
|
TSharedPtr< str... |
ActiveHapticEffect_Gun |
|
|
TSharedPtr< str... |
ActiveHapticEffect_Left |
Currently playing haptic effects for both the left and right hand |
|
TSharedPtr< str... |
ActiveHapticEffect_Right |
|
|
TWeakObjectPtr<... |
AudioListenerAttenuationComponent |
Component that is used to only override where attenuation calculations are computed from. |
|
AudioListenerAttenuationOverride |
Currently overridden vector used to do attenuation calculations for listener. |
|
|
TWeakObjectPtr<... |
AudioListenerComponent |
Component that is currently driving the audio listener position/orientation |
|
AudioListenerLocationOverride |
Currently overridden location of audio listener |
|
|
AudioListenerRotationOverride |
Currently overridden rotation of audio listener |
|
|
bAutoManageActiveCameraTarget |
True to allow this player controller to manage the camera target for you, typically by using the possessed pawn as the camera target. |
|
|
uint32: 1 |
bCinemaDisableInputLook |
|
|
uint32: 1 |
bCinemaDisableInputMove |
The state of the inputs from cinematic mode |
|
uint32: 1 |
bCinematicMode |
Is this player currently in cinematic mode? Prevents rotation/movement/firing/etc |
|
uint32: 1 |
bEnableClickEvents |
Whether actor/component click events should be generated. |
|
uint32: 1 |
bEnableMouseOverEvents |
Whether actor/component mouse over events should be generated. |
|
uint32: 1 |
bEnableTouchEvents |
Whether actor/component touch events should be generated. |
|
uint32: 1 |
bEnableTouchOverEvents |
Whether actor/component touch over events should be generated. |
|
uint32: 1 |
bForceFeedbackEnabled |
|
|
uint32: 1 |
bHidePawnInCinematicMode |
When cinematic mode is true, signifies that this controller's pawn should be hidden |
|
uint32: 1 |
bIsUsingStreamingVolumes |
Whether this controller is using streaming volumes. |
|
BlendedTargetViewRotation |
Smoothed version of TargetViewRotation to remove jerkiness from intermittent replication updates. |
|
|
uint32: 1 |
bOverrideAudioAttenuationListener |
Whether to override the attenuation listener position. |
|
uint32: 1 |
bOverrideAudioListener |
Whether to override the normal audio listener positioning method |
|
uint32: 1 |
bPlayerIsWaiting |
True if PlayerController is currently waiting for the match to start or to respawn. |
|
bRenderPrimitiveComponents |
Whether to render primitives component. |
|
|
uint32: 1 |
bShortConnectTimeOut |
When true, reduces connect timeout from InitialConnectionTimeOut to ConnectionTimeout. |
|
uint32: 1 |
bShouldPerformFullTickWhenPaused |
Whether we fully tick when the game is paused, if our tick function is allowed to do so. |
|
uint32: 1 |
bShowMouseCursor |
Whether the mouse cursor should be displayed. |
|
TSubclassOf< UC... |
CheatClass |
Class of my CheatManager. The Cheat Manager is not created in shipping builds |
|
UCheatManager &... |
CheatManager |
Object that manages "cheat" commands. Not instantiated in shipping builds. |
|
ClickEventKeys |
List of keys that will cause click events to be forwarded, default to left click |
|
|
ClientCap |
Cap set by server on bandwidth from client to server in bytes/sec (only has impact if >=2600) |
|
|
ControllingDirTrackInst |
Director track that's currently possessing this player controller, or none if not possessed. |
|
|
TWeakObjectPtr<... |
CurrentClickablePrimitive |
Clickable object currently under the mouse cursor. |
|
TEnumAsByte< EC... |
CurrentClickTraceChannel |
Trace channel currently being used for determining what world object was clicked on. |
|
CurrentInputStack |
|
|
|
TEnumAsByte< EM... |
CurrentMouseCursor |
Currently visible mouse cursor |
|
TWeakObjectPtr<... |
CurrentTouchablePrimitives |
Touchable objects currently under fingers. |
|
CurrentTouchInterface |
The currently set touch interface |
|
|
TEnumAsByte< EC... |
DefaultClickTraceChannel |
Default trace channel used for determining what world object was clicked on. |
|
TEnumAsByte< EM... |
DefaultMouseCursor |
Type of mouse cursor to show by default |
|
ForceFeedbackEffectHistoryEntries |
For debugging, shows the last force feeback effects that played |
|
|
float |
ForceFeedbackScale |
Scale applied to force feedback values |
|
ForceFeedbackValues |
Currently active force feedback weights |
|
|
HiddenActors |
The actors which the camera shouldn't see - e.g. used to hide actors which the camera penetrates |
|
|
HiddenPrimitiveComponents |
Explicit components the camera shouldn't see (helpful for external systems to hide a component from a single player) |
|
|
float |
HitResultTraceDistance |
Distance to trace when computing click events |
|
InactiveStateInputComponent |
InputComponent we use when player is in Inactive state. |
|
|
float |
InputPitchScale |
Pitch input speed scaling |
|
float |
InputRollScale |
Roll input speed scaling |
|
float |
InputYawScale |
Yaw input speed scaling |
|
LastCompletedSeamlessTravelCount |
The value of SeamlessTravelCount, upon the last call to GameModeBase::HandleSeamlessTravelPlayer; used to detect seamless travel |
|
|
float |
LastMovementHitch |
Last real time (undilated) a hitch was detected in TickActor() when checking for forced client movement updates. |
|
float |
LastMovementUpdateTime |
Last real time (undilated) recorded in TickActor() when checking for forced client movement updates. |
|
float |
LastSpectatorStateSynchTime |
Used to make sure the client is kept synchronized when in a spectator state |
|
LastSpectatorSyncLocation |
Last location synced on the server for a spectator. |
|
|
LastSpectatorSyncRotation |
Last rotation synced on the server for a spectator. |
|
|
float |
LocalPlayerCachedLODDistanceFactor |
Last used FOV based multiplier to distance to an object when determining if it exceeds the object's cull distance |
|
MuteList |
List of muted players in various categories |
|
|
AHUD * |
MyHUD |
Heads up display associated with this PlayerController. |
|
UNetConnection ... |
NetConnection |
The net connection this controller is communicating on, nullptr for local players on server |
|
NetPlayerIndex |
Index identifying players using the same base connection (splitscreen clients) Used by netcode to match replicated PlayerControllers to the correct splitscreen viewport and child connection replicated via special internal code, not through normal variable replication |
|
|
PendingMapChangeLevelNames |
List of names of levels the server is in the middle of sending us for a PrepareMapChange() call |
|
|
UNetConnection ... |
PendingSwapConnection |
This is set on the OLD PlayerController when performing a swap over a network connection so we know what connection we're waiting on acknowledgment from to finish destroying this PC (or when the connection is closed) |
|
UPlayer * |
Player |
UPlayer associated with this PlayerController. |
|
PlayerCameraManager |
Camera/view related variables Camera manager associated with this Player Controller. |
|
|
TSubclassOf< AP... |
PlayerCameraManagerClass |
PlayerCamera class should be set for each game, otherwise Engine.PlayerCameraManager is used |
|
UPlayerInput &#... |
PlayerInput |
Object that manages player input. |
|
RotationInput |
Input axes values, accumulated each tick. |
|
|
SeamlessTravelCount |
Counter for this players seamless travels (used along with the below value, to restrict ServerNotifyLoadedWorld) |
|
|
float |
SmoothTargetViewRotationSpeed |
Interp speed for blending remote view rotation for smoother client updates |
|
SpawnLocation |
The location used internally when there is no pawn or spectator, to know where to spawn the spectator or focus the camera on death. |
|
|
TargetViewRotation |
Used to replicate the view rotation of targets not owned/possessed by this PlayerController. |
|
|
TimerHandle_UnFreeze |
Handle for efficient management of UnFreeze timer |
|
|
TSharedPtr< cla... |
VirtualJoystick |
The virtual touch interface |
Name | Description | |
---|---|---|
|
APlayerController ( |
Default Constructor |
Name | Description | ||
---|---|---|---|
|
AcknowledgePossession ( |
Returns true if input should be frozen (whether UnFreeze timer is active) |
|
|
ActivateTouchInterface ( |
Activates a new touch interface for this player controller |
|
|
AddCheats ( |
Notifies the server that the client has ticked gameplay code, and should no longer get the extended "still loading" timeout grace period |
|
|
AddPitchInput ( |
Add Pitch (look up) input. This value is multiplied by InputPitchScale. |
|
|
AddRollInput ( |
Add Roll input. This value is multiplied by InputRollScale. |
|
|
AddYawInput ( |
Add Yaw (turn) input. This value is multiplied by InputYawScale. |
|
|
AutoManageActiveCameraTarget ( |
If bAutoManageActiveCameraTarget is true, then automatically manage the active camera target. |
|
|
BeginPlayingState() |
Pawn has been possessed, so changing state to NAME_Playing. |
|
|
BeginSpectatingState() |
Event when spectating begins. |
|
|
BuildHiddenComponentList ( |
Builds a list of components that are hidden based upon gameplay. |
|
|
BuildInputStack ( |
||
|
Camera ( |
Change Camera mode |
|
|
CanRestartPlayer() |
Returns true if this controller thinks it's able to restart. |
|
|
CleanUpAudioComponents() |
Clears out 'left-over' audio components. |
|
|
CleanupGameViewport() |
Gives the PlayerController an opportunity to cleanup any changes it applied to the game viewport, primarily for the touch interface |
|
|
ClearAudioListenerAttenuationOverride() |
||
|
ClearAudioListenerOverride() |
Clear any overrides that have been applied to audio listener |
|
|
ClientAddTextureStreamingLoc |
Adds a location to the texture streaming system for the specified duration. |
|
|
ClientCancelPendingMapChange() |
Tells client to cancel any pending map change. |
|
|
ClientCapBandwidth ( |
Set CurrentNetSpeed to the lower of its current value and Cap. |
|
|
ClientClearCameraLensEffects() |
Removes all Camera Lens Effects. |
|
|
ClientCommitMapChange() |
Actually performs the level transition prepared by PrepareMapChange(). |
|
|
ClientEnableNetworkVoice ( |
Tell the client to enable or disable voice chat (not muting) |
|
|
ClientEndOnlineSession() |
Notify client that the session is about to start |
|
|
ClientFlushLevelStreaming() |
Tells the client to block until all pending level streaming actions are complete happens at the end of the tick primarily used to force update the client ASAP at join time |
|
|
ClientForceGarbageCollection() |
Forces GC at the end of the tick on the client |
|
|
ClientGameEnded |
Replicated function called by GameHasEnded(). |
|
|
ClientGotoState ( |
Server uses this to force client into NewState . |
|
|
ClientIgnoreLookInput ( |
Calls IgnoreLookInput on client |
|
|
ClientIgnoreMoveInput ( |
Calls IgnoreMoveInput on client |
|
|
ClientMessage |
Outputs a message to HUD |
|
|
ClientMutePlayer ( |
Tell the client to mute a player for this controller |
|
|
ClientPlayCameraAnim ( |
Play the indicated CameraAnim on this camera. |
|
|
ClientPlayCameraShake ( |
Play Camera Shake |
|
|
ClientPlayCameraShakeFromSource ( |
Play Camera Shake localized to a given source |
|
|
ClientPlayForceFeedback ( |
Play a force feedback pattern on the player's controller |
|
|
ClientPlaySound ( |
Play sound client-side (so only the client will hear it) |
|
|
ClientPlaySoundAtLocation ( |
Play sound client-side at the specified location |
|
|
ClientPrepareMapChange |
Asynchronously loads the given level in preparation for a streaming map transition. |
|
|
ClientPrestreamTextures |
Forces the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by the specified actor. |
|
|
ClientReceiveLocalizedMessage ( |
Send client localized message id |
|
|
ClientRepObjRef ( |
Development RPC for testing object reference replication |
|
|
ClientReset() |
Tell client to reset the PlayerController |
|
|
ClientRestart ( |
Tell client to restart the level |
|
|
ClientRetryClientRestart ( |
Assign Pawn to player, but avoid calling ClientRestart if we have already accepted this pawn |
|
|
ClientReturnToMainMenuWithTextReason ( |
Return the client to the main menu gracefully |
|
|
ClientSetBlockOnAsyncLoading() |
Tells the client to block until all pending level streaming actions are complete. |
|
|
ClientSetCameraFade |
Tell client to fade camera bEnableFading - true if we should apply FadeColor/FadeAmount to the screen FadeColor - Color to fade to FadeAlpha - Amount of fading to apply FadeTime - length of time for fade to occur over bFadeAudio - true to apply fading of audio alongside the video |
|
|
ClientSetCameraMode ( |
Replicated function to set camera style on client |
|
|
ClientSetCinematicMode |
Called by the server to synchronize cinematic transitions with the client |
|
|
ClientSetForceMipLevelsToBeResident ( |
Forces the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by the specified material. |
|
|
ClientSetHUD ( |
Set the client's class of HUD and spawns a new instance of it. |
|
|
ClientSetSpectatorWaiting ( |
Indicate that the Spectator is waiting to join/respawn. |
|
|
ClientSetViewTarget ( |
Set the view target |
|
|
ClientSpawnCameraLensEffect ( |
Spawn a camera lens effect (e.g. blood). |
|
|
ClientStartOnlineSession() |
Notify client that the session is starting |
|
|
ClientStopCameraAnim ( |
Stop camera animation on client. |
|
|
ClientStopCameraShake ( |
Stop camera shake on client. |
|
|
ClientStopCameraShakesFromSource ( |
Stop camera shake on client. |
|
|
ClientStopForceFeedback ( |
Stops a playing force feedback pattern |
|
|
ClientTeamMessage ( |
||
|
ClientTravel ( |
Travel to a different map or IP address. |
|
|
ClientTravelInternal ( |
Internal clientside implementation of ClientTravel - use ClientTravel to call this |
|
|
ClientUnmutePlayer ( |
Tell the client to unmute a player for this controller |
|
|
ClientUpdateLevelStreamingStatus |
Replicated Update streaming status |
|
|
ClientUpdateMultipleLevelsStreamingStatus ( |
Replicated Update streaming status. |
|
|
ClientVoiceHandshakeComplete() |
Tells the client that the server has all the information it needs and that it is ok to start sending voice packets. |
|
|
ClientWasKicked ( |
Notify client they were kicked from the server |
|
|
ConsoleCommand |
||
|
ConsoleKey ( |
Console control commands, useful when remote debugging so you can't touch the console the normal way |
|
|
CreateTouchInterface() |
Create the touch interface, and activate an initial touch interface (if touch interface is desired) |
|
|
DefaultCanUnpause() |
Default implementation of pausing check for 'CanUnpause' delegates |
|
|
DelayedPrepareMapChange() |
Used to wait until a map change can be prepared when one was already in progress |
|
|
DeprojectMousePositionToWorld |
Convert current mouse 2D position to World Space 3D position and direction. |
|
|
DeprojectScreenPositionToWorld |
Convert 2D screen position to World Space 3D position and direction. |
|
|
DestroySpectatorPawn() |
Destroys the SpectatorPawn and sets it to nullptr. |
|
|
EnableCheats() |
Enables cheats within the game |
|
|
EndPlayingState() |
Leave playing state. |
|
|
EndSpectatingState() |
Event when no longer spectating. |
|
|
FlushPressedKeys() |
Flushes the current key state. |
|
|
ForceSingleNetUpdateFor ( |
Forces a full replication check of the specified Actor on only the client that owns this PlayerController this function has no effect if this PC is not a remote client or if the Actor is not relevant to that client |
|
|
FOV ( |
Set the field of view to NewFOV |
|
|
GameplayMutePlayer ( |
Mutes a remote player on the server and then tells the client to mute |
|
|
GameplayUnmutePlayer ( |
Unmutes a remote player on the server and then tells the client to unmute |
|
|
GetAudioListenerAttenuationOverridePosition ( |
Gets the attenuation position override. |
|
|
GetAudioListenerPosition |
Get audio listener position and orientation |
|
|
ACameraActor... |
GetAutoActivateCameraForPlayer() |
|
|
UInterpTrack... |
GetControllingDirector() |
Returns the Matinee director track that's currently possessing this player controller, or nullptr for none |
|
GetFocalLocation() |
Returns the location the PlayerController is focused on. |
|
|
GetHitResultAtScreenPosition ( |
Returns hit results from doing a collision query at a certain location on the screen |
|
|
GetHitResultAtScreenPosition ( |
Returns hit results from doing a collision query at a certain location on the screen |
|
|
GetHitResultAtScreenPosition ( |
Returns hit results from doing a collision query at a certain location on the screen |
|
|
GetHitResultAtScreenPosition ( |
Returns hit results from doing a collision query at a certain location on the screen |
|
|
GetHitResultUnderCursor ( |
||
|
GetHitResultUnderCursorByChannel ( |
Performs a collision query under the mouse cursor, looking on a trace channel |
|
|
GetHitResultUnderCursorForObjects ( |
Performs a collision query under the mouse cursor, looking for object types |
|
|
GetHitResultUnderFinger ( |
||
|
GetHitResultUnderFingerByChannel ( |
Performs a collision query under the finger, looking on a trace channel |
|
|
GetHitResultUnderFingerForObjects ( |
Performs a collision query under the finger, looking for object types |
|
|
T * |
GetHUD() |
Templated version of GetHUD, will return nullptr if cast fails |
|
AHUD * |
GetHUD() |
Gets the HUD currently being used by this player controller |
|
float |
GetInputAnalogKeyState ( |
Returns the analog value for the given key/button. |
|
GetInputAnalogStickState ( |
Retrieves the X and Y displacement of the given analog stick. |
|
|
GetInputIndex() |
||
|
float |
GetInputKeyTimeDown ( |
Returns how long the given key/button has been down. |
|
GetInputMotionState |
Retrieves the current motion state of the player's input device |
|
|
GetInputMouseDelta ( |
Retrieves how far the mouse moved this frame. |
|
|
GetInputTouchState ( |
Retrieves the X and Y screen coordinates of the specified touch key. |
|
|
GetInputVectorKeyState ( |
Returns the vector value for the given key/button. |
|
|
ULocalPlayer... |
GetLocalPlayer() |
Returns the ULocalPlayer for this controller if it exists, or null otherwise |
|
float |
GetMinRespawnDelay() |
Calculate minimal respawn delay |
|
EMouseCursor... |
GetMouseCursor() |
Returns the current mouse cursor, or None |
|
GetMousePosition ( |
Retrieves the X and Y screen coordinates of the mouse cursor. |
|
|
APlayerState... |
GetNextViewablePlayer ( |
Get next active viewable player in PlayerArray. |
|
APawn * |
GetPawnOrSpectator() |
Returns the first of GetPawn() or GetSpectatorPawn() that is not nullptr, or nullptr otherwise. |
|
APlayerContr... |
GetPlayerControllerForMuting ( |
Get a remote player controller on the server for muting |
|
GetPlayerNetworkAddress() |
Get the local players network address |
|
|
GetSeamlessTravelActorList |
Called on client during seamless level transitions to get the list of Actors that should be moved into the new level PlayerControllers, Role < ROLE_Authority Actors, and any non-Actors that are inside an Actor that is in the list (i.e. Object.Outer == Actor in the list) are all automatically moved regardless of whether they're included here only dynamic actors in the PersistentLevel may be moved (this includes all actors spawned during gameplay) this is called for both parts of the transition because actors might change while in the middle (e.g. players might join or leave the game) |
|
|
GetServerNetworkAddress() |
Get the server network address |
|
|
GetSpawnLocation() |
Get the location used when initially created, or when changing states when there is no pawn or spectator. |
|
|
ASpectatorPa... |
GetSpectatorPawn() |
Get the Pawn used when spectating. nullptr when not spectating. |
|
APlayerState... |
GetSplitscreenPlayerByIndex ( |
Returns the PlayerState associated with the player at the specified index. |
|
GetSplitscreenPlayerCount() |
Returns the number of split-screen players playing on this player's machine. |
|
|
GetViewportSize |
Helper to get the size of the HUD canvas for this player controller. Returns 0 if there is no HUD |
|
|
HasClientLoadedCurrentWorld() |
Returns whether the client has completely loaded the server's current world (valid on server only) |
|
|
InitInputSystem() |
Spawn the appropriate class of PlayerInput. |
|
|
InputAxis |
Handles a controller axis input |
|
|
InputEnabled() |
||
|
InputKey ( |
Handles a key press |
|
|
InputMotion |
Handles motion control |
|
|
InputTouch ( |
Handles a touch screen action |
|
|
IsFrozen() |
Returns true if input should be frozen (whether UnFreeze timer is active) |
|
|
IsInputKeyDown ( |
Returns true if the given key/button is pressed on the input of the controller (if present) |
|
|
IsInViewportClient ( |
||
|
IsPaused() |
Returns true if game is currently paused. |
|
|
IsPlayerMuted ( |
Is the specified player muted by this controlling player for any reason (gameplay, system, etc), check voice interface IsMuted() for system mutes |
|
|
IsPrimaryPlayer() |
Wrapper for determining whether this player is the first player on their console. |
|
|
IsSplitscreenPlayer ( |
Determines whether this player is playing split-screen. |
|
|
K2_ClientPlayForceFeedback ( |
Play a force feedback pattern on the player's controller |
|
|
LevelStreamingStatusChanged ( |
Notify player of change to level |
|
|
LocalTravel ( |
Causes the client to travel to the given URL |
|
|
NetworkRemapPath |
Handles remapping a package name for networking, call on both the client and server when sending package names manually for RPCs |
|
|
NotifyActorChannelFailure ( |
Called on the server when the client sends a message indicating it was unable to initialize an Actor channel, most commonly because the desired Actor's archetype couldn't be serialized the default is to do nothing (Actor simply won't exist on the client), but this function gives the game code an opportunity to try to correct the problem |
|
|
NotifyDirectorControl ( |
Notification when a matinee director track starts or stops controlling the ViewTarget of this PlayerController |
|
|
NotifyLoadedWorld |
Called to notify the server when the client has loaded a new world via seamless traveling |
|
|
NotifyServerReceivedClientData ( |
Notify the server that client data was received on the Pawn. |
|
|
OnServerStartedVisualLogger ( |
Notify from server that Visual Logger is recording, to show that information on client about possible performance issues |
|
|
Pause() |
Command to try to pause the game. |
|
|
PawnLeavingGame() |
Clean up when a Pawn's player is leaving a game. Base implementation destroys the pawn. |
|
|
FDynamicForc... |
PlayDynamicForceFeedback ( |
Allows playing of a dynamic force feedback event from native code Begins playing when Start is called. |
|
PlayerTick ( |
Processes player input (immediately after PlayerInput gets ticked) and calls UpdateRotation(). |
|
|
PlayHapticEffect ( |
Play a haptic feedback curve on the player's controller |
|
|
PopInputComponent ( |
Removes given inputcomponent from the input stack (regardless of if it's the top, actually). |
|
|
PostProcessInput ( |
Method called after processing input |
|
|
PostProcessWorldToScreen |
After successful world to screen projection, allows custom post-processing of the resulting ScreenLocation. |
|
|
PostSeamlessTravel() |
Called after this player controller has transitioned through seamless travel, but before that player is initialized This is called both when a new player controller is created, and when it is maintained |
|
|
PreClientTravel ( |
Called when the local player is about to travel to a new map or IP address. |
|
|
PreProcessInput ( |
Method called prior to processing input |
|
|
ProcessForceFeedbackAndHaptics ( |
||
|
ProcessPlayerInput ( |
||
|
ProjectWorldLocationToScreen |
Convert a World Space 3D position into a 2D Screen Space position. |
|
|
ProjectWorldLocationToScreenWithDistance |
Convert a World Space 3D position into a 3D Screen Space position. |
|
|
PushInputComponent ( |
Adds an inputcomponent to the top of the input stack. |
|
|
ReceivedGameModeClass ( |
This function will be called to notify the player controller that the world has received its game class. |
|
|
ReceivedPlayer() |
Called after this PlayerController's viewport/net connection is associated with this player controller. |
|
|
ReceivedSpectatorClass ( |
Called to notify the controller that the spectator class has been received. |
|
|
ResetCameraMode() |
Reset Camera Mode to default. |
|
|
ResetControllerLightColor() |
Resets the light color of the player's controller to default |
|
|
RestartLevel() |
Restarts the current level |
|
|
SafeRetryClientRestart() |
Call ClientRetryClientRestart, but only if the current pawn is not the currently acknowledged pawn (and throttled to avoid saturating the network). |
|
|
SafeServerCheckClientPossession() |
Call ServerCheckClientPossession on the server, but only if the current pawn is not the acknowledged pawn (and throttled to avoid saturating the network). |
|
|
SafeServerUpdateSpectatorState() |
Calls ServerSetSpectatorLocation but throttles it to reduce bandwidth and only calls it when necessary. |
|
|
SeamlessTravelFrom ( |
Called when seamless traveling and the specified PC is being replaced by this one copy over data that should persist (not called if PlayerController is the same for the from and to GameModes) |
|
|
SeamlessTravelTo ( |
Called when seamless traveling and we are being replaced by the specified PC clean up any persistent state (post process chains on LocalPlayers, for example) (not called if PlayerController is the same for the from and to GameModes) |
|
|
SendClientAdjustment() |
Called on server at end of tick, to let client Pawns handle updates from the server. |
|
|
SendToConsole ( |
Sends a command to the console to execute if not shipping version |
|
|
ServerAcknowledgePossession ( |
Acknowledge possession of pawn |
|
|
ServerCamera ( |
Change mode of camera |
|
|
ServerChangeName ( |
Change name of server |
|
|
ServerCheckClientPossession() |
Tells the server to make sure the possessed pawn is in sync with the client. |
|
|
ServerCheckClientPossessionReliable() |
Reliable version of ServerCheckClientPossession to be used when there is no likely danger of spamming the network. |
|
|
ServerExec ( |
Executes command on server (non shipping builds only) |
|
|
ServerExecRPC ( |
RPC used by ServerExec. Not intended to be called directly |
|
|
ServerMutePlayer ( |
Tell the server to mute a player for this controller |
|
|
ServerNotifyLoadedWorld ( |
Called to notify the server when the client has loaded a new world via seamless traveling |
|
|
ServerPause() |
Replicate pause request to the server |
|
|
ServerRestartPlayer() |
Attempts to restart this player, generally called from the client upon respawn request. |
|
|
ServerSetSpectatorLocation |
When spectating, updates spectator location/rotation and pings the server to make sure spectating should continue. |
|
|
ServerSetSpectatorWaiting ( |
Indicate that the Spectator is waiting to join/respawn. |
|
|
ServerShortTimeout() |
Notifies the server that the client has ticked gameplay code, and should no longer get the extended "still loading" timeout grace period |
|
|
ServerToggleAILogging() |
Used by UGameplayDebuggingControllerComponent to replicate messages for AI debugging in network games. |
|
|
ServerUnmutePlayer ( |
Tell the server to unmute a player for this controller |
|
|
ServerUpdateCamera ( |
|
|
|
ServerUpdateLevelVisibility ( |
Called when the client adds/removes a streamed level. |
|
|
ServerUpdateMultipleLevelsVisibility ( |
Called when the client adds/removes a streamed level. |
|
|
ServerVerifyViewTarget() |
Used by client to request server to confirm current viewtarget (server will respond with ClientSetViewTarget() ). |
|
|
ServerViewNextPlayer() |
Move camera to next player on round ended or spectating |
|
|
ServerViewPrevPlayer() |
Move camera to previous player on round ended or spectating |
|
|
ServerViewSelf ( |
Move camera to current user |
|
|
SetAsLocalPlayerController() |
Designate this player controller as local (public for GameModeBase to use, not expected to be called anywhere else) |
|
|
SetAudioListenerAttenuationOverride ( |
||
|
SetAudioListenerOverride ( |
Used to override the default positioning of the audio listener |
|
|
SetCameraMode ( |
Set new camera mode |
|
|
SetCinematicMode |
Server/SP only function for changing whether the player is in cinematic mode. |
|
|
SetCinematicMode |
Adjust input based on cinematic mode |
|
|
SetControllerLightColor ( |
Sets the light color of the player's controller |
|
|
SetControllingDirector ( |
Sets the Matinee director track instance that's currently possessing this player controller |
|
|
SetDisableHaptics ( |
Allows the player controller to disable all haptic requests from being fired, e.g. in the case of a level loading |
|
|
SetHapticsByValue ( |
Sets the value of the haptics for the specified hand directly, using frequency and amplitude. |
|
|
SetInputMode ( |
Setup an input mode. |
|
|
SetMouseCursorWidget ( |
Sets the Widget for the Mouse Cursor to display |
|
|
SetMouseLocation ( |
Positions the mouse cursor in screen space, in pixels. |
|
|
SetName ( |
Tries to set the player's name to the given name. |
|
|
SetNetSpeed ( |
Store the net speed |
|
|
SetPause ( |
Locally try to pause game (call serverpause to pause network game); returns success indicator. |
|
|
SetPlayer ( |
Associate a new UPlayer with this PlayerController. |
|
|
SetSpawnLocation ( |
Set the SpawnLocation for use when changing states or when there is no pawn or spectator. |
|
|
SetSpectatorPawn ( |
Set the spectator pawn. |
|
|
SetupInactiveStateInputComponent ( |
Sets up input bindings for the input component pushed on the stack in the inactive state. |
|
|
SetupInputComponent() |
Allows the PlayerController to set up custom input bindings. |
|
|
SetViewTarget ( |
Set the view target |
|
|
SetViewTargetWithBlend ( |
Set the view target blending with variable control |
|
|
SetVirtualJoystickVisibility ( |
Set the virtual joystick visibility. |
|
|
ShouldKeepCurrentPawnUponSpectating() |
Useful to spectate other pawn without un-possessing the current pawn |
|
|
ShouldPerformFullTickWhenPaused() |
Returns true if we fully tick when paused (and if our tick function is enabled when paused). |
|
|
ShouldShowMouseCursor() |
Returns true if the mouse cursor should be shown |
|
|
SmoothTargetViewRotation ( |
Called client-side to smoothly interpolate received TargetViewRotation (result is in BlendedTargetViewRotation) |
|
|
SpawnDefaultHUD() |
Spawn a HUD (make sure that PlayerController always has valid HUD, even if ClientSetHUD() hasn't been called |
|
|
SpawnPlayerCameraManager() |
Spawn cameras for servers and owning players |
|
|
ASpectatorPa... |
SpawnSpectatorPawn() |
Spawn a SpectatorPawn to use as a spectator and initialize it. |
|
StartFire ( |
Fire the player's currently selected weapon with the optional firemode. |
|
|
StartSpectatingOnly() |
Start spectating mode, as the only mode allowed. |
|
|
StartTalking() |
Enable voice chat transmission |
|
|
StopHapticEffect ( |
Stops a playing haptic feedback curve |
|
|
StopTalking() |
Disable voice chat transmission |
|
|
SwitchLevel ( |
SwitchLevel to the given MapURL. |
|
|
TickPlayerInput ( |
Internal. |
|
|
ToggleSpeaking ( |
Toggle voice chat on and off |
|
|
UnFreeze() |
Timer used by RoundEnded and Inactive states to accept player input again |
|
|
UpdateCameraManager ( |
Update the camera manager; this is called after all actors have been ticked. |
|
|
UpdateForceFeedback ( |
||
|
UpdateHiddenActors ( |
Builds a list of actors that are hidden based upon gameplay |
|
|
UpdateHiddenComponents ( |
Builds a list of components that are hidden based upon gameplay |
|
|
UpdatePing ( |
Takes ping updates from the net driver (both clientside and serverside), and passes them on to PlayerState::UpdatePing |
|
|
UpdateRotation ( |
Updates the rotation of player, based on ControlRotation after RotationInput has been applied. |
|
|
UpdateStateInputComponents() |
Refresh state specific input components |
|
|
ViewAPlayer ( |
View next active player in PlayerArray. |
|
|
WasInputKeyJustPressed ( |
Returns true if the given key/button was up last frame and down this frame. |
|
|
WasInputKeyJustReleased ( |
Returns true if the given key/button was down last frame and up this frame. |
Name | Description | ||
---|---|---|---|
|
BeginInactiveState() |
State entered when inactive (no possessed pawn, not spectating, etc). |
|
|
ChangeState ( |
Change the current state to named state |
|
|
CleanupPlayerState() |
Called from Destroyed(). |
|
|
DisplayDebug ( |
||
|
EndInactiveState() |
Called when leaving the inactive state |
|
|
FailedToSpawnPawn() |
GameMode failed to spawn pawn for me. |
|
|
GameHasEnded |
Called from game mode upon end of the game, used to transition to proper state. |
|
|
GetPlayerViewPoint |
Returns Player's Point of View For the AI this means the Pawn's 'Eyes' ViewPoint For a Human player, this means the Camera's ViewPoint |
|
|
AActor * |
GetViewTarget() |
Get the actor the controller is looking at |
|
IsLocalController() |
Returns whether this Controller is a local controller. |
|
|
OnPossess ( |
Overridable native function for when this controller possesses a pawn. |
|
|
OnUnPossess() |
Overridable native function for when this controller unpossesses its pawn. |
|
|
ResetIgnoreInputFlags() |
Reset move and look input ignore flags to defaults |
|
|
SetInitialLocationAndRotation |
Set the initial location and rotation of the controller, as well as the control rotation. |
|
|
SetPawn ( |
Setter for Pawn. Normally should only be used internally when possessing/unpossessing a Pawn. |
Name | Description | ||
---|---|---|---|
|
BeginPlay() |
Overridable native event for when play begins for this actor. |
|
|
CalcCamera ( |
Calculate camera view point, when viewing this actor. |
|
|
Destroyed() |
Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending |
|
|
DestroyNetworkActorHandled() |
Called by DestroyActor(), gives actors a chance to op out of actor destruction Used by network code to have the net connection timeout/cleanup first |
|
|
DisableInput ( |
Removes this actor from the stack of input being handled by a PlayerController. |
|
|
EnableInput ( |
Pushes this actor on to the stack of input being handled by a PlayerController. |
|
|
EndPlay ( |
Overridable function called whenever this actor is being removed from a level |
|
|
FellOutOfWorld ( |
Called when the actor falls out of the world 'safely' (below KillZ and such) |
|
|
GetActorEyesViewPoint |
Returns the point of view of the actor. |
|
|
UNetConnecti... |
GetNetConnection() |
Get the owning connection used for communicating between client/server |
|
const AActor... |
GetNetOwner() |
Return the actor responsible for replication, if any. Typically the player controller |
|
UPlayer *... |
GetNetOwningPlayer() |
Return the owning UPlayer (if any) of this actor. |
|
float |
GetNetPriority |
Function used to prioritize actors when deciding which to replicate |
|
HasNetOwner() |
Overridden to return that player controllers are capable of RPCs |
|
|
IsNetRelevantFor |
Checks to see if this actor is relevant for a specific network connection |
|
|
OnActorChannelOpen ( |
Allows for a specific response from the actor when the actor channel is opened (client side) |
|
|
OnNetCleanup ( |
Handles cleaning up the associated Actor when killing the connection |
|
|
OnSerializeNewActor ( |
SerializeNewActor has just been called on the actor before network replication (server side) |
|
|
PostInitializeComponents() |
Overridden to create the player replication info and perform other mundane initialization tasks. |
|
|
Reset() |
Reset actor to initial state - used when restarting level without reloading. |
|
|
TickActor ( |
Dispatches the once-per frame Tick() function for this actor |
|
|
UseShortConnectTimeout() |
Used by the net connection to determine if a net owning actor should switch to using the shortened timeout value |
Name | Description | ||
---|---|---|---|
|
GetLifetimeReplicatedProps ( |
Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
Name | Description | ||
---|---|---|---|
|
ClientPlayForceFeedback ( |
Use version that specifies parameters using a struct instead of a list of parameters |
|
|
ClientPlayForceFeedback ( |
Use version that specifies parameters using a struct instead of a list of parameters |
|
|
ClientReturnToMainMenu ( |
As an FString, the ReturnReason parameter is not easily localized. Please use ClientReturnToMainMenuWithTextReason instead. |
|
|
InputTouch ( |
InputTouch now takes a Force |
|
|
ServerUpdateLevelVisibility |
Use ServerUpdateLevelVisibility that accepts a LevelVisibility struct. |