Logic of a Microwave help!

I am trying to get good enough in UE4 blueprint and wanted to make a microwave, How would I go about doing the logic for it?

Having a number pad panel that the first person on mouse over and left click will activate which ever button on the microwave panel. I wanted the led display on the microwave to update like a real one does. Where/how should I learn about doing this?

This is how I would go about it, Microwave is its own blueprint, ‘button’ is an actor which holds a buttonType enum to switch on, then basically make a child blueprint under button for each button, and change the enum.

As for your LED screen, I would use the UMG as a 3D widget - checkout some tutorials on UMG to get around that but its pretty straightforward.

as for the actual microwave working, you could have an animation play for door opening/closing on your ‘open’ button, and a spinning animation play for the glass tray inside on ‘Start’, then a step further would be making a burnt material to blend to for whichever object you place inside.

for UMG, Widgets, Material blending, Blueprint Inheritance, Casting etc youtube is your friend.

So to very quickly explain whats happening here, click left button - the engine does a ray trace on what you are currently centred on with the cursor, returns actor - if the actor is a button - success! what kind of button is it > do your logic there, if the hit actor is not a button, it will say ‘press a button!’

Good luck post your Microwave on here when your done :slight_smile:

I recently made a control panel with several switches as child blueprints. I used an event dispatcher in the switch bp to send back the state of each switch - the switch bp had a collision capsule (it’s a vive game which checks for a fingertip mesh). In the main bp (the microwave one in this case) I bound events to the event dispatcher of each child object at beginplay.