Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:UTPlayerController instance functions (UDK)
Object >> Actor >> Controller >> PlayerController >> GamePlayerController >> UTPlayerController (instance functions) |
Contents
- 1 Instance functions
- 1.1 AcknowledgePossession
- 1.2 AddOnlineDelegates
- 1.3 AdjustFOV
- 1.4 AdjustPersistentKey
- 1.5 AdminCmdOk
- 1.6 AimHelpModifier
- 1.7 AimingHelp
- 1.8 AllowTextMessage
- 1.9 AllowTTSMessageFrom
- 1.10 AlreadyInActionMusic
- 1.11 AtuallyShowQuickPickMenu
- 1.12 BullseyeMessage
- 1.13 CallServerMove
- 1.14 CanCommunicate
- 1.15 CanRestartPlayer
- 1.16 CharacterProcessingComplete
- 1.17 CheckAutoObjective
- 1.18 CheckBulletWhip
- 1.19 CheckJumpOrDuck
- 1.20 CheckPickedVehicle
- 1.21 CheckVehicleToDrive
- 1.22 CleanupOnlineSubsystemSession
- 1.23 ClearCameraEffect
- 1.24 ClearStringAliasBindingMapCache
- 1.25 ClientBecameActivePlayer
- 1.26 ClientEndZoom
- 1.27 ClientGameEnded
- 1.28 ClientMusicEvent
- 1.29 ClientPawnDied
- 1.30 ClientPlayAnnouncement
- 1.31 ClientPlayTakeHit
- 1.32 ClientReset
- 1.33 ClientRestart
- 1.34 ClientRoundEnded
- 1.35 ClientSetAutoObjective
- 1.36 ClientSetBehindView
- 1.37 ClientSetOnlineStatus
- 1.38 ClientSetRequestedEntryWithFlag
- 1.39 ClientSetSpeechRecognitionObject
- 1.40 ClientSpawnCameraEffect
- 1.41 DamageShake
- 1.42 DisplayDebug
- 1.43 DrawHUD
- 1.44 EndZoom
- 1.45 EndZoomNonlinear
- 1.46 FindVehicleToDrive
- 1.47 FinishQuitToMainMenu
- 1.48 FixFOV
- 1.49 GetAdjustedAimFor
- 1.50 HasPersistentKey
- 1.51 LandingShake
- 1.52 LoadCharacterFromProfile
- 1.53 LoadSettingsFromProfile
- 1.54 LongClientAdjustPosition
- 1.55 NotifyInviteFailed
- 1.56 NotifyNotAllPlayersCanJoinInvite
- 1.57 NotifyNotEnoughSpaceInInvite
- 1.58 NotifyTakeHit
- 1.59 OnConnectionStatusChange
- 1.60 OnControllerChanged
- 1.61 OnDestroyOnlineGameComplete
- 1.62 OnEndOnlineGameComplete
- 1.63 OnFriendInviteReceived
- 1.64 OnFriendMessageReceived
- 1.65 OnGameInviteReceived
- 1.66 OnLinkStatusChanged
- 1.67 OnPlayCameraAnim
- 1.68 OnReadProfileSettingsComplete
- 1.69 OnStopCameraAnim
- 1.70 OnUpdatePropertyFOVAngle
- 1.71 OpenUIScene
- 1.72 PawnDied
- 1.73 PerformedUseAction
- 1.74 PlayAnnouncement
- 1.75 PlayBeepSound
- 1.76 PlayCameraAnim
- 1.77 PlayHeartbeat
- 1.78 PlayStartupMessage
- 1.79 PlayWinMessage
- 1.80 ProjectileWarningTimer
- 1.81 PulseTeamColor
- 1.82 QuitToMainMenu
- 1.83 ReceiveBotVoiceMessage
- 1.84 ReceiveProjectileWarning
- 1.85 RegisterCustomPlayerDataStores
- 1.86 RemoveCameraEffect
- 1.87 Restart
- 1.88 RoundHasEnded
- 1.89 SaveProfile
- 1.90 SaveServerToHistory
- 1.91 SendMessage
- 1.92 ServerAdmin
- 1.93 ServerAdminLogin
- 1.94 ServerAdminLogOut
- 1.95 ServerBecomeActivePlayer
- 1.96 ServerChangeMap
- 1.97 ServerChangeTeam
- 1.98 ServerDropFlag
- 1.99 ServerForceTextMute
- 1.100 ServerForceTextUnMute
- 1.101 ServerForceVoiceMute
- 1.102 ServerForceVoiceUnMute
- 1.103 ServerKickBan
- 1.104 ServerPlayerPreferences
- 1.105 ServerPlayVehicleHorn
- 1.106 ServerProcessSpeechRecognition
- 1.107 ServerRestartMap
- 1.108 ServerSay
- 1.109 ServerSetAutoTaunt
- 1.110 ServerSetCharacterClass
- 1.111 ServerSetClanTag
- 1.112 ServerSetHand
- 1.113 ServerShowPathToBase
- 1.114 ServerSpectate
- 1.115 ServerTeamSay
- 1.116 ServerThrowWeapon
- 1.117 ServerUse
- 1.118 ServerViewingMap
- 1.119 ServerViewObjective
- 1.120 ServerViewPlayerByName
- 1.121 ServerViewSelf
- 1.122 SetAutoObjective
- 1.123 SetBehindView
- 1.124 SetCameraAnimStrength
- 1.125 SetCameraMode
- 1.126 SetHand
- 1.127 SetViewTarget
- 1.128 ShortServerMove
- 1.129 ShowMidGameMenu
- 1.130 ShowScoreboard
- 1.131 SpawnCamera
- 1.132 SpeechRecognitionComplete
- 1.133 StartZoom
- 1.134 StartZoomNonlinear
- 1.135 StopCameraAnim
- 1.136 StopHeartBeat
- 1.137 StopViewShaking
- 1.138 StopZoom
- 1.139 TriggerInteracted
- 1.140 Typing
- 1.141 UnregisterPlayerDataStores
- 1.142 UpdateRotation
- 1.143 UpdateSex
- 1.144 UpdateVolumeAndBrightness
- 1.145 UsingFirstPersonCamera
- 1.146 ViewNextBot
- 1.147 ViewShake
- UTPlayerController instance functions in other games:
- UT3
- Other member categories for this class:
- constants, exec functions, internal variables, states
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Instance functions
AcknowledgePossession
Overrides: PlayerController.AcknowledgePossession
AddOnlineDelegates
Sets online delegates to respond to for this PC.
AdjustFOV
Overrides: PlayerController.AdjustFOV
Called each frame from PlayerTick this function is used to transition towards the DesiredFOV if not already at it.
Parameters:
- DeltaTime - Time since last update
AdjustPersistentKey
AdminCmdOk
Admin functions
AimHelpModifier
Returns:
- the a scaling factor for the distance from the collision box of the target to accept aiming help (for instant hit shots)
AimingHelp
Overrides: PlayerController.AimingHelp
AllowTextMessage
Overrides: PlayerController.AllowTextMessage
AllowTTSMessageFrom
AlreadyInActionMusic
return true if music manager is already playing action track return true if no music manager (no need to tell non-existent music manager to change tracks
AtuallyShowQuickPickMenu
This will show the QuickPick Menu! *
BullseyeMessage
CallServerMove
Overrides: PlayerController.CallServerMove
CanCommunicate
CanRestartPlayer
Overrides: PlayerController.CanRestartPlayer
CharacterProcessingComplete
called when the GRI finishes processing custom character meshes
CheckAutoObjective
attempts to find an objective for the player to complete depending on their settings and tells the player about it
Parameters:
- bOnlyNotifyDifferent - if true, only send messages to the player if the selected objective is different from the previous one
Note: needs to be called on the server, not the client (because that's where the AI is)
CheckBulletWhip
CheckJumpOrDuck
Overrides: PlayerController.CheckJumpOrDuck
CheckPickedVehicle
returns the Vehicle passed in if it can be driven
CheckVehicleToDrive
Returns vehicle which can be driven
Parameters:
- bEnterVehicle - if true then player enters the found vehicle
CleanupOnlineSubsystemSession
Cleans up online subsystem game sessions and posts stats if the match is arbitrated.
ClearCameraEffect
ClearStringAliasBindingMapCache
Clear the contents of the command to bind key cache
ClientBecameActivePlayer
ClientEndZoom
Allows the server to tell the client to end zoom
ClientGameEnded
Overrides: PlayerController.ClientGameEnded
ClientMusicEvent
ClientPawnDied
Client-side notification that the pawn has died.
ClientPlayAnnouncement
ClientPlayTakeHit
ClientReset
Overrides: PlayerController.ClientReset
ClientRestart
Overrides: PlayerController.ClientRestart
ClientRoundEnded
ClientSetAutoObjective
client-side notification of the current auto objective
ClientSetBehindView
ClientSetOnlineStatus
Overrides: PlayerController.ClientSetOnlineStatus
Looks at the current game state and uses that to set the rich presence strings
Licensees should override this in their player controller derived class
ClientSetRequestedEntryWithFlag
sets bRequestedEntryWithFlag on the given vehicle to update the HUD
ClientSetSpeechRecognitionObject
ClientSpawnCameraEffect
Spawn ClientSide Camera Effects *
DamageShake
Causes a view shake based on the amount of damage Should only be called on the owning client
DisplayDebug
Overrides: PlayerController.DisplayDebug
(Description copied from PlayerController.DisplayDebug)
list important PlayerController variables on canvas. HUD will call DisplayDebug() on the current ViewTarget when the ShowDebug exec is used
Parameters:
- HUD - HUD with canvas to draw on
- out_YL - Height of the current font
- out_YPos - Y position on Canvas. out_YPos += out_YL, gives position to draw text for next debug line.
DrawHUD
Overrides: PlayerController.DrawHUD
Hook called from HUD actor. Gives access to HUD and Canvas
EndZoom
This function will end a zoom and reset the FOV to the default value
EndZoomNonlinear
Ends a zoom, but interpolates nonlinearly back to the default value.
FindVehicleToDrive
Overrides: PlayerController.FindVehicleToDrive
Tries to find a vehicle to drive within a limited radius. Returns true if successful
FinishQuitToMainMenu
Called after onlinesubsystem game cleanup has completed.
FixFOV
Overrides: PlayerController.FixFOV
GetAdjustedAimFor
Overrides: PlayerController.GetAdjustedAimFor
Adjusts weapon aiming direction. Gives controller a chance to modify the aiming of the pawn. For example aim error, auto aiming, adhesion, AI help... Requested by weapon prior to firing. UTPlayerController implementation doesn't adjust aim, but sets the shottarget (for warning enemies)
Parameters:
- W - weapon about to fire
- StartFireLoc - world location of weapon fire start trace, or projectile spawn loc.
- BaseAimRot - original aiming rotation without any modifications.
HasPersistentKey
LandingShake
Overrides: Controller.LandingShake
LandingShake() returns true if controller wants landing view shake
LoadCharacterFromProfile
Loads the player's custom character from their profile.
LoadSettingsFromProfile
LongClientAdjustPosition
Overrides: PlayerController.LongClientAdjustPosition
NotifyInviteFailed
Overrides: PlayerController.NotifyInviteFailed
Override to display a message to the user
NotifyNotAllPlayersCanJoinInvite
Overrides: PlayerController.NotifyNotAllPlayersCanJoinInvite
Override to display a message to the user
NotifyNotEnoughSpaceInInvite
Overrides: PlayerController.NotifyNotEnoughSpaceInInvite
Override to display a message to the user
NotifyTakeHit
Overrides: PlayerController.NotifyTakeHit
Notification from pawn that it has received damage via TakeDamage().
OnConnectionStatusChange
Called when a system level connection change notification occurs. If we are playing a Live match, we may need to notify and go back to the menu. Otherwise silently ignore this.
Parameters:
- ConnectionStatus - the new connection status.
OnControllerChanged
Overrides: PlayerController.OnControllerChanged
Attempts to pause/unpause the game when a controller becomes disconnected/connected
Parameters:
- ControllerId - the id of the controller that changed
- bIsConnected - whether the controller is connected or not
OnDestroyOnlineGameComplete
Called when the destroy online game has completed. At this point it is safe to travel back to the menus
Parameters:
- SessionName - the name of the session the event is for
- bWasSuccessful - whether it worked ok or not
OnEndOnlineGameComplete
Called when the online game has finished ending.
OnFriendInviteReceived
Callback for when a friend request has been received.
OnFriendMessageReceived
Called when a friend invite arrives for a local player
Parameters:
- LocalUserNum - the user that is receiving the invite
- SendingPlayer - the player sending the friend request
- SendingNick - the nick of the player sending the friend request
- Message - the message to display to the recipient
Returns:
- true if successful, false otherwise
OnGameInviteReceived
Callback for when a game invite has been received.
OnLinkStatusChanged
Called when the platform's network link status changes. If we are playing a match on a remote server, we need to go back to the front end menus and notify the player.
OnPlayCameraAnim
OnReadProfileSettingsComplete
Callback for when the profile finishes reading for this PC.
OnStopCameraAnim
OnUpdatePropertyFOVAngle
called through camera anim code when it modifies FOVAngle
OpenUIScene
Attempts to open a UI Scene.
Parameters:
- Template - The Template of the scene to open.
Returns:
- the opened scene
PawnDied
Overrides: PlayerController.PawnDied
PerformedUseAction
Overrides: PlayerController.PerformedUseAction
return true if player the Use action was handled
PlayAnnouncement
PlayBeepSound
Overrides: PlayerController.PlayBeepSound
PlayCameraAnim
plays the specified camera animation with the specified weight (0 to 1) local client only
PlayHeartbeat
PlayStartupMessage
PlayWinMessage
ProjectileWarningTimer
PulseTeamColor
Called from the UTTeamGameMessage, this will cause all TeamColored Images on the hud to pulse.
QuitToMainMenu
Called when returning to the main menu.
ReceiveBotVoiceMessage
Receive a voice message from a bot - process locally, since character may be different on client
ReceiveProjectileWarning
Overrides: Controller.ReceiveProjectileWarning
RegisterCustomPlayerDataStores
Overrides: PlayerController.RegisterCustomPlayerDataStores
Creates and initializes the "PlayerOwner" and "PlayerSettings" data stores. This function assumes that the PlayerReplicationInfo for this player has not yet been created, and that the PlayerOwner data store's PlayerDataProvider will be set when the PRI is registered.
Overloaded so we can initialize game specific player data stores.
RemoveCameraEffect
Parameters:
- CamEmitter - Clear the CameraEffect if it is the one passed in
Restart
Overrides: PlayerController.Restart
RoundHasEnded
Overrides: Controller.RoundHasEnded
SaveProfile
Saves the current profile complete with UI scene
SaveServerToHistory
Saves the UniqueNetId for the current server to the player's list of recently visited servers (server history).
SendMessage
Overrides: Controller.SendMessage
ServerAdmin
ServerAdminLogin
ServerAdminLogOut
ServerBecomeActivePlayer
ServerChangeMap
ServerChangeTeam
Overrides: PlayerController.ServerChangeTeam
Don't allow team changes if we are in single player, or too frequently
ServerDropFlag
ServerForceTextMute
ServerForceTextUnMute
ServerForceVoiceMute
ServerForceVoiceUnMute
ServerKickBan
Allows the local player or admin to kick a player
ServerPlayerPreferences
ServerPlayVehicleHorn
ServerProcessSpeechRecognition
ServerRestartMap
ServerSay
Overrides: PlayerController.ServerSay
ServerSetAutoTaunt
ServerSetCharacterClass
tells the server about the character this player is using
ServerSetClanTag
Sets the ClanTag for this player.
Parameters:
- InClanTag - New clan tag for the player.
ServerSetHand
ServerShowPathToBase
ServerSpectate
ServerTeamSay
Overrides: PlayerController.ServerTeamSay
ServerThrowWeapon
Overrides: PlayerController.ServerThrowWeapon
ServerUse
Overrides: PlayerController.ServerUse
Limit use frequency
ServerViewingMap
ServerViewObjective
ServerViewPlayerByName
ServerViewSelf
Overrides: PlayerController.ServerViewSelf
SetAutoObjective
SetBehindView
SetCameraAnimStrength
Allows changing camera anim strength on the fly
SetCameraMode
Overrides: PlayerController.SetCameraMode
Set new camera mode
Parameters:
- NewCamMode - new camera mode.
SetHand
SetViewTarget
Overrides: PlayerController.SetViewTarget
ShortServerMove
ShowMidGameMenu
ShowScoreboard
SpawnCamera
SpeechRecognitionComplete
set to VoiceInterface's speech recognition delegate; called when words are recognized
StartZoom
This function will cause the PlayerController to begin zooming to a new FOV Level.
Parameters:
- NewDesiredFOV - The new FOV Value to head towards
- NewZoomRate - The rate of transition in degrees per second
StartZoomNonlinear
StopCameraAnim
Stops the currently playing camera animation.
StopHeartBeat
StopViewShaking
Turns off any view shaking
StopZoom
This function will stop the zooming process keeping the current FOV Angle
TriggerInteracted
Overrides: PlayerController.TriggerInteracted
Examines the nearby enviroment and generates a priority sorted list of interactable actors, and then attempts to activate each of them until either one was successfully activated, or no more actors are available.
Typing
UnregisterPlayerDataStores
Overrides: PlayerController.UnregisterPlayerDataStores
Unregisters the "PlayerOwner" data store for this player. Called when this PlayerController is destroyed.
Overloaded so we can unregister game specific player data stores.
UpdateRotation
Overrides: PlayerController.UpdateRotation
UpdateSex
Overrides: Controller.UpdateSex
Sex is set when mesh is set for pawn
UpdateVolumeAndBrightness
Updates sound volumes and screen brightness. Done in a seperate function so it can be called by the sliders to update these values in real time without doing a lot of extra work.
UsingFirstPersonCamera
Overrides: PlayerController.UsingFirstPersonCamera
return whether viewing in first person mode
ViewNextBot
ViewShake
Overrides: PlayerController.ViewShake
Sets ShakeOffset and ShakeRot to the current view shake that should be applied to the camera