How might I add two trigger volumes to the same door?

I understand how to add multiple doors to the same trigger, but not the other way around.

I was thinking of adding a second room that you need to enter in order to get the cube ( or cone )
But don’t understand this part.
So,
Any idea how I may add two different triggers to the same door?
Or is it that I need to duplicate the whole code ?

Thanks! :slight_smile:

You could have a TArray<ATriggerVolume*> and then have a loop that checks if any are overlapping e.g.

bool UOpenDoor::IsOverlapping(/* do you need any parameters? */)
{
    for (ATriggerVolume* Volumes : TriggerVolumes)
    {
        if (Volumes->//something(here, maybe?))
        {
            return true;
        }
    }
    return false;
}

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms