blueprint

Main Level Blueprint

  • Exposure: public
  • UE Version: 4.26

TJ

January 24, 2023, 7:11 pm

on Event BeginPlay we first create the UI widget so we can control the machine using a button m.

then we bind the event dispachers from the UI to local custom events that will call the functions in the Pill Spawner BP.

then bellow it there is a camera setup of 3 different POVs that can be controlled with the keys 1,2,3.

Machine Movement: in this part we have two events:

  1. a counter for the pills the displays on the first screen.
  2. the second display shows us if it is a red pill or a blue pill using Branch and contains function. then if it is a red pill we want to move it to the left and it it is a blue pill we want to move it to the right, so i used the move component to functions in order to change the location of the belt and it's forword vector so it will sort them in the right direction. after this there is also a moving arm that moves the pills.
Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v