My program doesn't have bugs. It just develops random features.
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[edit]
AcknowledgePossession[edit]
Overrides: PlayerController.AcknowledgePossession
AddOnlineDelegates[edit]
Sets online delegates to respond to for this PC.
AdjustFOV[edit]
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[edit]
AdminCmdOk[edit]
Admin functions
AimHelpModifier[edit]
Returns:
- the a scaling factor for the distance from the collision box of the target to accept aiming help (for instant hit shots)
AimingHelp[edit]
Overrides: PlayerController.AimingHelp
AllowTextMessage[edit]
Overrides: PlayerController.AllowTextMessage
AllowTTSMessageFrom[edit]
AlreadyInActionMusic[edit]
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[edit]
This will show the QuickPick Menu! *
BullseyeMessage[edit]
CallServerMove[edit]
Overrides: PlayerController.CallServerMove
CanCommunicate[edit]
CanRestartPlayer[edit]
Overrides: PlayerController.CanRestartPlayer
CharacterProcessingComplete[edit]
called when the GRI finishes processing custom character meshes
CheckAutoObjective[edit]
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[edit]
CheckJumpOrDuck[edit]
Overrides: PlayerController.CheckJumpOrDuck
CheckPickedVehicle[edit]
returns the Vehicle passed in if it can be driven
CheckVehicleToDrive[edit]
Returns vehicle which can be driven
Parameters:
- bEnterVehicle - if true then player enters the found vehicle
CleanupOnlineSubsystemSession[edit]
Cleans up online subsystem game sessions and posts stats if the match is arbitrated.
ClearCameraEffect[edit]
ClearStringAliasBindingMapCache[edit]
Clear the contents of the command to bind key cache
ClientBecameActivePlayer[edit]
ClientEndZoom[edit]
Allows the server to tell the client to end zoom
ClientGameEnded[edit]
Overrides: PlayerController.ClientGameEnded
ClientMusicEvent[edit]
ClientPawnDied[edit]
Client-side notification that the pawn has died.
ClientPlayAnnouncement[edit]
ClientPlayTakeHit[edit]
ClientReset[edit]
Overrides: PlayerController.ClientReset
ClientRestart[edit]
Overrides: PlayerController.ClientRestart
ClientRoundEnded[edit]
ClientSetAutoObjective[edit]
client-side notification of the current auto objective
ClientSetBehindView[edit]
ClientSetOnlineStatus[edit]
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[edit]
sets bRequestedEntryWithFlag on the given vehicle to update the HUD
ClientSetSpeechRecognitionObject[edit]
ClientSpawnCameraEffect[edit]
Spawn ClientSide Camera Effects *
DamageShake[edit]
Causes a view shake based on the amount of damage Should only be called on the owning client
DisplayDebug[edit]
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[edit]
Overrides: PlayerController.DrawHUD
Hook called from HUD actor. Gives access to HUD and Canvas
EndZoom[edit]
This function will end a zoom and reset the FOV to the default value
EndZoomNonlinear[edit]
Ends a zoom, but interpolates nonlinearly back to the default value.
FindVehicleToDrive[edit]
Overrides: PlayerController.FindVehicleToDrive
Tries to find a vehicle to drive within a limited radius. Returns true if successful
FinishQuitToMainMenu[edit]
Called after onlinesubsystem game cleanup has completed.
FixFOV[edit]
Overrides: PlayerController.FixFOV
GetAdjustedAimFor[edit]
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[edit]
LandingShake[edit]
Overrides: Controller.LandingShake
LandingShake() returns true if controller wants landing view shake
LoadCharacterFromProfile[edit]
Loads the player's custom character from their profile.
LoadSettingsFromProfile[edit]
LongClientAdjustPosition[edit]
Overrides: PlayerController.LongClientAdjustPosition
NotifyInviteFailed[edit]
Overrides: PlayerController.NotifyInviteFailed
Override to display a message to the user
NotifyNotAllPlayersCanJoinInvite[edit]
Overrides: PlayerController.NotifyNotAllPlayersCanJoinInvite
Override to display a message to the user
NotifyNotEnoughSpaceInInvite[edit]
Overrides: PlayerController.NotifyNotEnoughSpaceInInvite
Override to display a message to the user
NotifyTakeHit[edit]
Overrides: PlayerController.NotifyTakeHit
Notification from pawn that it has received damage via TakeDamage().
OnConnectionStatusChange[edit]
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[edit]
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[edit]
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[edit]
Called when the online game has finished ending.
OnFriendInviteReceived[edit]
Callback for when a friend request has been received.
OnFriendMessageReceived[edit]
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[edit]
Callback for when a game invite has been received.
OnLinkStatusChanged[edit]
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[edit]
OnReadProfileSettingsComplete[edit]
Callback for when the profile finishes reading for this PC.
OnStopCameraAnim[edit]
OnUpdatePropertyFOVAngle[edit]
called through camera anim code when it modifies FOVAngle
OpenUIScene[edit]
Attempts to open a UI Scene.
Parameters:
- Template - The Template of the scene to open.
Returns:
- the opened scene
PawnDied[edit]
Overrides: PlayerController.PawnDied
PerformedUseAction[edit]
Overrides: PlayerController.PerformedUseAction
return true if player the Use action was handled
PlayAnnouncement[edit]
PlayBeepSound[edit]
Overrides: PlayerController.PlayBeepSound
PlayCameraAnim[edit]
plays the specified camera animation with the specified weight (0 to 1) local client only
PlayHeartbeat[edit]
PlayStartupMessage[edit]
PlayWinMessage[edit]
ProjectileWarningTimer[edit]
PulseTeamColor[edit]
Called from the UTTeamGameMessage, this will cause all TeamColored Images on the hud to pulse.
QuitToMainMenu[edit]
Called when returning to the main menu.
ReceiveBotVoiceMessage[edit]
Receive a voice message from a bot - process locally, since character may be different on client
ReceiveProjectileWarning[edit]
Overrides: Controller.ReceiveProjectileWarning
RegisterCustomPlayerDataStores[edit]
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[edit]
Parameters:
- CamEmitter - Clear the CameraEffect if it is the one passed in
Restart[edit]
Overrides: PlayerController.Restart
RoundHasEnded[edit]
Overrides: Controller.RoundHasEnded
SaveProfile[edit]
Saves the current profile complete with UI scene
SaveServerToHistory[edit]
Saves the UniqueNetId for the current server to the player's list of recently visited servers (server history).
SendMessage[edit]
Overrides: Controller.SendMessage
ServerAdmin[edit]
ServerAdminLogin[edit]
ServerAdminLogOut[edit]
ServerBecomeActivePlayer[edit]
ServerChangeMap[edit]
ServerChangeTeam[edit]
Overrides: PlayerController.ServerChangeTeam
Don't allow team changes if we are in single player, or too frequently
ServerDropFlag[edit]
ServerForceTextMute[edit]
ServerForceTextUnMute[edit]
ServerForceVoiceMute[edit]
ServerForceVoiceUnMute[edit]
ServerKickBan[edit]
Allows the local player or admin to kick a player
ServerPlayerPreferences[edit]
ServerPlayVehicleHorn[edit]
ServerProcessSpeechRecognition[edit]
ServerRestartMap[edit]
ServerSay[edit]
Overrides: PlayerController.ServerSay
ServerSetAutoTaunt[edit]
ServerSetCharacterClass[edit]
tells the server about the character this player is using
ServerSetClanTag[edit]
Sets the ClanTag for this player.
Parameters:
- InClanTag - New clan tag for the player.
ServerSetHand[edit]
ServerShowPathToBase[edit]
ServerSpectate[edit]
ServerTeamSay[edit]
Overrides: PlayerController.ServerTeamSay
ServerThrowWeapon[edit]
Overrides: PlayerController.ServerThrowWeapon
ServerUse[edit]
Overrides: PlayerController.ServerUse
Limit use frequency
ServerViewingMap[edit]
ServerViewObjective[edit]
ServerViewPlayerByName[edit]
ServerViewSelf[edit]
Overrides: PlayerController.ServerViewSelf
SetAutoObjective[edit]
SetBehindView[edit]
SetCameraAnimStrength[edit]
Allows changing camera anim strength on the fly
SetCameraMode[edit]
Overrides: PlayerController.SetCameraMode
Set new camera mode
Parameters:
- NewCamMode - new camera mode.
SetHand[edit]
SetViewTarget[edit]
Overrides: PlayerController.SetViewTarget
ShortServerMove[edit]
ShowMidGameMenu[edit]
ShowScoreboard[edit]
SpawnCamera[edit]
SpeechRecognitionComplete[edit]
set to VoiceInterface's speech recognition delegate; called when words are recognized
StartZoom[edit]
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[edit]
StopCameraAnim[edit]
Stops the currently playing camera animation.
StopHeartBeat[edit]
StopViewShaking[edit]
Turns off any view shaking
StopZoom[edit]
This function will stop the zooming process keeping the current FOV Angle
TriggerInteracted[edit]
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[edit]
UnregisterPlayerDataStores[edit]
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[edit]
Overrides: PlayerController.UpdateRotation
UpdateSex[edit]
Overrides: Controller.UpdateSex
Sex is set when mesh is set for pawn
UpdateVolumeAndBrightness[edit]
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[edit]
Overrides: PlayerController.UsingFirstPersonCamera
return whether viewing in first person mode
ViewNextBot[edit]
ViewShake[edit]
Overrides: PlayerController.ViewShake
Sets ShakeOffset and ShakeRot to the current view shake that should be applied to the camera