Procedural Dungeon ⏵ Dungeon Generator Base ⏵ Get Random Room Candidate
Get Random Room Candidate
Class: Dungeon Generator Base
Category: Dungeon Graph
Description
Returns a random RoomCandidate from the array provided
When the scores are used as weights, zero and negative scores are discarded automatically
Node

C++
const FRoomCandidate& GetRandomRoomCandidate(const TArray<FRoomCandidate>& RoomCandidates, bool bUseScoresAsWeights) const
Inputs
| Name | Type | Description |
|---|---|---|
| Target | Dungeon Generator Base Object Reference | |
| Room Candidates | Array of Room Candidate Structures | |
| Use Scores as Weights | Boolean |
Outputs
| Name | Type | Description |
|---|---|---|
| Return Value | Room Candidate Structure (by ref) | Returns a random RoomCandidate from the array provided When the scores are used as weights, zero and negative scores are discarded automatically |