Skip to content
Destuur edited this page Sep 11, 2025 · 11 revisions

KCDUtils-banner

KCDUtils

KCDUtils is a utility library for Kingdom Come: Deliverance 2 modding.

Purpose

  • Simplifies common modding tasks
  • Provides extensive documentation for an easy coding workflow
  • Provides event systems, entity handling, and utility functions
  • Provides easy registration for instantiated DB and logger

Quick Example

-- Create and Trigger a custom event
local myCustomEvent = KCDUtils.Events.CreateEvent("MyMod.TestCustomEvent")

mod.TriggerCustomEvent = function(message)
    myCustomEvent.Trigger({ message = message })
end

Find out more about KCDUtils:

Clone this wiki locally