For anyone wondering, this works: EventsLua.AttachEventLua((LuaEventsId)Enum.Parse(typeof(LuaEventsId), "PLAYER_DEAD"), m => { LastDeath = DateTime.Now; Logging.WriteDebug("Died, set new timestamp for last death"); });