click two meshes to make something happen

Hello!
I’m a beginner and I did this blueprint: In the game you click StaticMesh1 and then StaticMesh3 is visible. But the player should click StaticMesh1 AND StaticMesh2 to turn on the visibility of the StaticMesh3 (not by clicking only one StaticMesh). How to do that? I tried several things, but nothing worked. Any help is appreciated :slight_smile:

1 Like

the player should click StaticMesh1 AND StaticMesh2 to turn on the visibility of the StaticMesh3

Try:


You will need to have onClickEvents enabled in the Player Controller for the above to work. And the static meshes need to have collision enabled that blocks a channel defined in the PC - Visibility by default.

@Everynone Thank you so much for the help!
I tried to apply that and have two more questions.
The idea is, that the player can combine either dress1 with coat or headgear, or dress2 with coat or headgear: click dress1 and coat-> Avatar 1 turns visible, click dress1 and headgear → Avatar 2, click dress2 and headgear → Avatar 3, click dress2 and coat → Avatar 4. With this blueprint the avatars can turn visible although the “click sequence” was not e.g. dress2 and coat (because coat was already clicked). How to fix that (I couldn’t figure it out)?

And why turns Avatar 1 visible only after clicking dress1 and coat and dress1 again?
Any help is appreciated :slight_smile:

You’re answering your own question here :ghost:

image

A.k.a. logic gates:

logicgate

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