Dungeon Architect

, the emitter BP can see your variables from code. You need to add a reference to your C++ actor that drives this variable and read it from there

's an example where from the BP, I’m grabbing the distance (random value between 1-6) from C++

C++ code that drives the distance variable:
AMyDungeonController.h



#pragma once
#include "AMyDungeonController.generated.h"

UCLASS(Blueprintable)
class AMyDungeonController : public AActor
{
	GENERATED_BODY()

public:

	UFUNCTION(BlueprintCallable, BlueprintPure, Category = MyDungeonController)
	int32 GetMountainDistance();

};


AMyDungeonController.cpp



#include "DA413X.h"	// pch
#include "AMyDungeonController.h"

int32 AMyDungeonController::GetMountainDistance()
{
	return FMath::RandRange(1, 6);
}


Add a variable in the emitter BP that takes a references to your controller code and make it public

Grab the distance from your C++ code

Finally, set the reference of your C++ code in the marker emitter when you register it in the Dungeon actor. (The assumption is that you have it somewhere placed in the level, which you probably do)

Clicking build now randomly generates rocks that are 1-6 layers deep