Skip to content

BPL_BL_Mod

BurrowLib 0.2.0, in the palette under BurrowLib › Mod.

What a mod knows about itself.

The game mounts each mod’s pak at /Game/Mods/<Name>/, so every Blueprint of a mod is saved under its mod’s folder, and the folder’s name is the mod’s. Pass self from any Blueprint of your mod:

on ReceiveBeginPlay {
BPL_BL_Mod.Log(self, "map loaded")
}

writes “PK_MyMod: map loaded” to the game’s mod log.

The name of the mod whose Blueprint made this object, e.g. “PK_MyMod”, or “” for an object made by the game itself.

Writes a line to the game’s mod log, with the mod’s name in front, so a player’s log shows which mod said what.

The folder under /Game/Mods/ that an asset path lies in, or “” for a path outside it. A mod does not need to call it.

Greet asks which mod this Blueprint belongs to, and BeginPlay writes the answer to the game’s mod log. The examples live in /Game/Mods/BurrowLibExamples, so the name is BurrowLibExamples.

An Actor Blueprint, BP_ModName, with:

  • a variable Greeting, String

Function Greet

Event Graph