×

OnCakeMachineRefresh

 

The "OnCakeMachineRefresh" event is executed as soon as the player move or spawn or add ingredient or do a cake, in a cake machine;

This also provides the following information:

Input:

  • UniqueID - INTEGER64 - gives a unique number that identifies the cake machine; this identifier does not change when the cake machineis moved or a new day starts, but it is changed as soon as the game restarts.
  • Transform - TRANSFORM - It gives the position and rotation of the cake machine (the size too, but it always remains at 1)
  • CakeID- NAME- provides the identifier of the cake selected for this cake machine
  • IngredientsID - ARRAY OF NAME- provides a list of ingredients needed for the selected cake
  • IngredientsQt - ARRAY OF INTEGER- provides a list of the number of ingredients already on the machine cake.
  • IngredientsQtMax - ARRAY OF INTEGER- provides a list of the number of ingredients needed for the selected cake.