Skip to content

REDKIT: CPC Quest API functions

Nikita Grebenyuk edited this page Dec 14, 2024 · 4 revisions
  • latent quest function NR_SetNewPlayerAppearance_Q(playerType : ENR_PlayerType, headName : name, appearanceEntries : array<SNR_ApperanceEntry>)

Changes player entity to specified playerType, set head to headName (for custom types) and loads apperance from appearanceEntries (for custom types), and returns control to questgraph only when everything is ready. It is recommended function in most cases.


  • latent quest function NR_ChangePlayerLatent_Q(newPlayerType : ENR_PlayerType)

Changes player entity to specified newPlayerType and returns control to questgraph only when everything is ready. It is recommended to use NR_SetNewPlayerAppearance_Q instead, for specifying appearance too.


  • quest function NR_SaveAppearanceSet_Q()

Saves current appearance set, so later player can load it back in player setup scene.


  • quest function NR_SetPlayerTypeChangeLocked_Q(locked : bool, reason : String)

Adds/removes lock for player changing his type with player setup scene or hotkeys.


  • quest function NR_ResetAllAppearanceHeadHair_Q()

Resets all player appearance, including items (for custom types). It means player will have only head loaded after this function.


  • quest function NR_UpdateHead_Q(headName : name)

Updates head with specified head item name. It should start with nr_ prefix. List of all heads is in dlc\dlcnewreplacers\data\gameplay\items\nr_def_head_items.xml

Clone this wiki locally