Functions and Lists

Hello, I was wondering whether anyone perhaps knows if there is a way to store multiple functions within a table? I am recreating the system from Baba Is You and basically have an integer value assigned to every different word tile. By using line tracing, I can get the integer value of the first object and of the last object within a formed rule. If the line tracing e.g. detects 1 for “Rock” in position #1 and 2 for “Push” in position #3, I would like to call a function that is assigned to these two values. Does anyone know, if something like this is possible? Thank you in advance!

I’m not sure if this is the best way to go about it, but here’s what came to my mind:

  1. Create a Blueprint Function Library with all the functions you need

  2. Use “Switch on Int” within your pawn (I presume)

  3. Call the Functions you need based on your integer value

I’ve attached a screenshot here. Hope this helps.