API Reference
PDML exposes general-purpose Blueprint function and macro libraries, a loader manager, and event dispatchers for logic mods.
For the authoring workflow, see PDML logic mods. Settings registration and value access are covered separately in Mod Settings.
Get the loader manager
The helper library is located at:
/PDML/Blueprints/Utilities/BPFL_ModLoader
Use its Get Mod Loader Manager node from your Mod Actor to obtain the running BP_ModLoader instance through the game instance. Check that ModLoaderManagerInstance is valid before calling functions or binding events on it.
The manager Blueprint is located at:
/PDML/Blueprints/BP_ModLoader
Use the running instance returned by the helper when subscribing to events.
General function library
BPFL_General contains reusable functions for mod Blueprint graphs:
/PDML/Blueprints/Utilities/BPFL_General
Search for the function’s node name in your Blueprint graph. Most functions in this library are pure nodes that return data without execution pins. GetAllCharactersOfTeam has execution pins and performs a world search.
Characters and menu state
| Function | Pins | Behavior |
|---|---|---|
|
Input: |
Finds |
|
Input: |
Reads the character’s |
|
Output: |
Returns whether the current world’s Game Mode can be cast to |
For example, call GetAllCharactersOfTeam, loop through Characters, and use IsAlive when your logic should only affect living characters. Use IsInMenu to choose different behavior for the main menu and a heist world.
String and text helpers
| Function | Pins | Behavior |
|---|---|---|
|
Input: |
Trims leading and trailing whitespace, then checks whether the resulting string is empty. |
|
Input: |
Trims leading and trailing whitespace from the text, then checks whether it is empty. |
|
Input: |
Returns the string with leading and trailing whitespace removed. Whitespace inside the string is retained. |
Numeric helpers
| Function | Pins | Behavior |
|---|---|---|
|
Inputs: |
Returns the absolute difference, |
|
Input: |
Calculates the reciprocal, |
|
Input: |
Checks whether |
|
Output: |
Produces positive infinity by converting the string |
|
Output: |
Produces negative infinity by converting the string |
Numeric pin types
The (float) suffix is part of these functions' names. Their numeric inputs and outputs are serialized as double-precision values in the inspected asset; IsZero (float) uses Unreal’s NearlyEqual_FloatFloat comparison internally.
General macro library
BPML_General provides execution-flow wrappers and variable-update macros:
/PDML/Blueprints/Utilities/BPML_General
Add a macro node to your graph and connect its execution pins. The branch macros route execution directly, so you do not need to add a separate Branch node for their Boolean result.
| Macro | Pins | Behavior |
|---|---|---|
|
Input: |
Calls |
|
Execution outputs: |
Calls |
|
Input: |
Wraps the loader library’s persistent-object lookup. Use the returned object on the |
|
Input: |
Wraps the loader library’s invalid-reference cleanup and branches according to whether any entries were removed. |
|
Inputs: |
Adds |
|
Inputs: |
Adds |
Connect a writable variable to Float or Integer when using the increment macros. For example, an integer variable containing 5 with Value set to 3 becomes 8, and Result is 8.
The persistent-object and array-cleanup macros call the existing BPFL_ModLoader helpers internally. You can use these general macro wrappers in your mod without calling PDML’s loader lifecycle functions yourself.
Function library
Most functions in BPFL_ModLoader are implementation helpers for PDML’s BP_ModLoader, rather than functions mod makers should routinely call. For logic mods, start with the two lookup helpers below and the loader event dispatchers. Register your actors and persistent objects in the mod data asset and let PDML manage their lifecycle.
Names below use their asset names; the Blueprint node menu may display them with spaces.
Helpers for logic mods
| Function | Pins | Behavior |
|---|---|---|
|
Output: |
Gets the loader manager from the PAYDAY 3 game instance. The result may be invalid if the manager is unavailable. |
|
Input: |
Searches the manager’s |
PDML internal library functions
These functions mainly support BP_ModLoader internals. They are included for reference when inspecting or contributing to PDML; normal logic mods should use registration, lookups, and event bindings instead.
Internal function library reference
| Function | Pins | Behavior |
|---|---|---|
|
Input: |
Creates an object with the loader manager as its outer, adds the instance to |
For a persistent object that should always load with your mod, register its class in the mod data asset’s Persistent Objects array. The runtime creation helper does not replace that registration workflow.
Runtime persistent-object initialization
AddNewPersistentObject creates and stores the object but does not call the Init or PostInit interface events in its current implementation. The loader’s normal registered-object initialization uses separate initialization steps.
Account for any initialization your object requires when creating one dynamically.
| Function | Pins | Behavior |
|---|---|---|
|
Input: |
Checks whether an actor of the class already exists in the current world. Use |
|
Input: |
Checks for an existing top-level widget of the requested class. Use the result before creating another widget. |
|
Output: |
Checks the calling actor or widget against the first instance found for its class. If the caller is a different instance, it destroys the calling actor or removes the calling widget from its parent, and sets |
|
Input/output by reference: |
Removes invalid object references from the supplied array and reports whether any were removed. |
|
|
| Function | Pins | Behavior |
|---|---|---|
|
Input: |
Looks for the heist data asset in |
|
Input/output by reference: |
Appends the integer to the string, prefixing values from 0 to 9 with a zero. For example, appending |
|
Inputs: |
Parses the existing slot names using the delimiter and searches for an available numbered slot within the limit. Check |
Save-helper availability
GetNextAvailableSaveSlot is defined in the library but is not marked static in the inspected asset, unlike its other public helper functions. It is used by the loader’s save implementation; do not assume it is available as a normal global Blueprint library node in every modkit version.
BPFL_ModLoader.PrintToModLoader accepts a Message string. Its body is currently empty in the inspected asset, so calling it does not produce a log message.
The manager also defines PrintToModLoader, with a Print string input. That implementation is empty too.
Bind to loader events
Get the manager instance, drag from its output pin, and select Bind Event to the dispatcher you need. Connect a custom event with the matching parameters.
Bind while your Mod Actor or persistent object is available. Binding after an event has already fired does not replay it. Recreated Mod Actors need to establish their bindings again.
| Dispatcher | Parameters | Notification |
|---|---|---|
|
None. |
The loader receives the heist-start notification. |
|
None. |
The loader enters its wait-for-return-to-menu handling. |
|
None. |
The game state machine enters the game-start state. |
|
|
The heist state changes. Use the supplied states to decide which transition your mod should handle. |
|
None. |
The loader receives the lobby-entered notification. |
|
None. |
The loader receives the lobby-exited notification. |
|
None. |
The loader receives the matchmaking-exited notification. |
|
None. |
The loader receives the job-overview-ready notification. |
|
|
Reports a checked keybind’s identifier and down state. Filter by your setting’s Unique ID; do not assume each notification represents a single press edge. |
|
None. |
Settings-change notification. Read your mod’s current values through the settings library; the dispatcher does not include a setting ID or value. |
OnJobOverviewComplete is also declared with no parameters, but the inspected manager does not broadcast it. Do not rely on that dispatcher to run your logic in this version.
See Mod Settings for setting definitions, value getters, and keybind usage.
Loader implementation functions
Most logic mods only need GetModLoaderManager, FindPersistentModObjectByClass, and the event bindings above. The manager also exposes functions used by PDML to discover, register, and spawn mod content. Normal mods register their assets through their mod data asset and let PDML run this lifecycle.
Functions used by the loader lifecycle
| Function | Role in the inspected manager |
|---|---|
|
Processes a |
|
Checks for metadata that still needs processing. |
|
Sorts registered Mod Actor entries into spawn-timing groups. |
|
Creates registered persistent objects and invokes their initialization interface. |
|
Invokes the post-initialization interface on persistent objects. |
|
Adds persistent widget instances to the viewport. |
|
Adds the collected heist data and level paths to the game’s heist settings. |
|
Handles the immediate-spawn actor group, including clearing tracked actors and creating the registered actors. |
|
Spawns the heist-start actor group and applies its singleton checks. |
|
Creates PDML’s input manager actor. |
|
Checks the configured input chords and broadcasts |
|
These functions have empty bodies in the inspected asset. |
|
Logging stub with an empty body. |
Calling lifecycle functions manually can create or recreate content that PDML already manages. Use registration, lookups, and event bindings for the normal logic-mod workflow.