I don't need to test my programs. I have an error-correcting modem.

UE3:UTProfileSettings instance functions (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UTProfileSettings instance functions in other games:
UT3
Other member categories for this class:
constants, defaults, enums, properties

Instance functions[edit]

ActionIsBound[edit]

function bool ActionIsBound (EDigitalButtonActions ActionIdx)

Whether an action has been bound or not.

AddPersistentKey[edit]

function bool AddPersistentKey (ESinglePlayerPersistentKeys AddKey)

Add a PersistentKey

Parameters:

  • AddKey - The Persistent Key to add

Returns:

true if successful.

ApplyAllKeyBindings[edit]

function ApplyAllKeyBindings (PlayerInput PInput)

Applies all possible bindings to the specified player input.

Parameters:

  • InPlayerInput - PlayerInput to bind keys on

ApplyKeyBinding[edit]

function ApplyKeyBinding (PlayerInput PInput, EDigitalButtonActions KeyBinding)

Applies a key binding to the given player input, rebinds keys that are already bound, doesn't unbind keys already assigned to the action.

Parameters:

  • InPlayerInput - PlayerInput to bind keys on
  • KeyBinding - Action to bind keys for.

AreAnyChaptersUnlocked[edit]

function bool AreAnyChaptersUnlocked ()


bGameInProgress[edit]

function bool bGameInProgress ()

Returns:

true if a game is in progress

FindKeyEnum[edit]

function int FindKeyEnum (name KeyName)

Looks up a keybinding enum value given its name.

Parameters:

  • KeyName - Key name to look up the enum for.

Returns:

Returns the enum value for the key or INDEX_NONE if none was found.

FindKeyName[edit]

function name FindKeyName (EUTBindableKeys KeyEnum)

Looks up a keybinding name given an enum value

Parameters:

  • KeyName - Key name to look up the enum for.

Returns:

Returns the name for the key if it exists, or otherwise.

GetActionName[edit]

function string GetActionName (EDigitalButtonActions ActionIdx)


GetCampaignSkillLevel[edit]

function int GetCampaignSkillLevel ()


GetChapterMask[edit]

function int GetChapterMask ()


GetCurrentMissionData[edit]

function GetCurrentMissionData (out int MissionID, out int MissionResult)

Parameters:

  • MissionID - Returns the Mission ID for the current mission
  • MissionResult - Returns the results for the last mission.

GetDBAFromCommand[edit]

function int GetDBAFromCommand (string Command)

Attempts to find a digital button action enum using a string command

Parameters:

  • Command - Command to find

Returns:

an EDigitalButtonAction enum value if one exists, INDEX_NONE otherwise.

GetProfileIDForDBA[edit]

function int GetProfileIDForDBA (EDigitalButtonActions KeyAction)

Returns the profile ID for a digital button action.

Parameters:

  • KeyAction - Action to return a profile ID for.

Returns:

Returns the profile ID for the action.

GetProfileSettingValueFloatByName[edit]

function bool GetProfileSettingValueFloatByName (name SettingName, out float OutValue)

Returns the float value of a profile setting given its name.

Returns:

Whether or not the value was retrieved

GetProfileSettingValueIdByName[edit]

function bool GetProfileSettingValueIdByName (name SettingName, out int OutValue)

Returns the Id mapped value of a profile setting given its name.

Returns:

Whether or not the value was retrieved

GetProfileSettingValueIntByName[edit]

function bool GetProfileSettingValueIntByName (name SettingName, out int OutValue)

Returns the integer value of a profile setting given its name.

Returns:

Whether or not the value was retrieved

GetProfileSettingValueStringByName[edit]

function bool GetProfileSettingValueStringByName (name SettingName, out string OutValue)

Returns the string value of a profile setting given its name.

Returns:

Whether or not the value was retrieved

HasPersistentKey[edit]

function bool HasPersistentKey (ESinglePlayerPersistentKeys SearchKey, optional out int PSI_Index)

Check to see if a Persistent Key has been set.

Parameters:

  • SearchKey - The Persistent Key to look for
  • PSI_Index - Optional Out> returns the PSI Index for the slot holding the key

Returns:

true if the key exists, false if it doesn't

IsChapterUnlocked[edit]

function bool IsChapterUnlocked (int ChapterIndex)


NewGame[edit]

function NewGame ()

Resets the single player game profile settings for a new game

RemoveDBABindings[edit]

function RemoveDBABindings (PlayerInput PInput)

Removes any binds the profile manages.

RemovePersistentKey[edit]

function bool RemovePersistentKey (ESinglePlayerPersistentKeys RemoveKey)

Remove a PersistentKey

Parameters:

  • RemoveKey - The Persistent Key to remove

Returns:

true if successful

SetCampaignSkillLevel[edit]

function SetCampaignSkillLevel (int NewSkillLevel)


SetChapterMask[edit]

function SetChapterMask (int NewMask)


SetCurrentMissionData[edit]

function SetCurrentMissionData (int NewMissionID, int bNewMissionResult)


SetKeyBinding[edit]

function SetKeyBinding (EDigitalButtonActions KeyAction, name KeyBinding, optional name KeyBinding2, optional name KeyBinding3, optional name KeyBinding4)

Sets a binding for a specified key action.

Parameters:

  • KeyAction - DBA to bind
  • KeyBinding1 - Key to bind #1
  • KeyBinding2 - Key to bind #2
  • KeyBinding3 - Key to bind #3
  • KeyBinding4 - Key to bind #4

SetKeyBindingUsingCommand[edit]

function SetKeyBindingUsingCommand (string KeyCommand, name KeyBinding, optional name KeyBinding2, optional name KeyBinding3, optional name KeyBinding4)

Sets a binding for a specified command.

Parameters:

  • KeyAction - DBA to bind
  • KeyBinding1 - Key to bind #1
  • KeyBinding2 - Key to bind #2
  • KeyBinding3 - Key to bind #3
  • KeyBinding4 - Key to bind #4

StoreKeysUsingPlayerInput[edit]

function StoreKeysUsingPlayerInput (optional PlayerInput PInput)

Stores key settings in the profile using the player input object provided.

Parameters:

  • PInput - Player input to get bindings from.

UnbindKey[edit]

function UnbindKey (PlayerInput PInput, name BindName)

Unbinds the specified key.

Parameters:

  • PInput - Player input to operate on
  • BindName - Key to unbind

UnlockChapter[edit]

function UnlockChapter (int ChapterIndex)