There is no spoon

UE3:UTProfileSettings instance functions (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> OnlineProfileSettings >> UTProfileSettings (instance functions)
UTProfileSettings instance functions in other games:
UDK
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.

AddModifierCard[edit]

function AddModifierCard (name Card)

Add Modifier Card

Parameters:

  • Card - The Modifier Card to Add

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

BoneHasBeenVisited[edit]

function BoneHasBeenVisited (name BoneName)

Flags a bone as having been visited

Parameters:

  • BoneNAme - The Bone to flag

ClearModifierCards[edit]

function ClearModifierCards ()

Returns:

true if the player has any of these cards

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)


GetBoneMask[edit]

function GetBoneMask (out int MaskA, out int MaskB)

Checks to see if a bone has already been visited (ie: you have completed this mission

Parameters:

  • MaskA - The Second part of the mask

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.

GetDeck[edit]

function GetDeck (out array<nameDeck, out array<intCardCount)


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.

HasModifierCard[edit]

function bool HasModifierCard (name Card)

Returns:

true if the player has any of these cards

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

PatchDefaultKeyBindings[edit]

function PatchDefaultKeyBindings (PlayerInput PInput)


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)


UseModifierCard[edit]

function UseModifierCard (name Card)

Use Modifier Card

Parameters:

  • Card - The Modifier Card use