I’m back and asking the question about how to setup a teleport destination based on which button has been pressed.
I’ve asked before and it was very helpful but I still cannot get it to work.
This is the overview, the sole box is the button. Each of the flat boxes are the teleports, which are actors because I can’t communicate with anything in level blueprint. The Button should change the teleport location to one of the two teleport location on the left when you walk through the one on the left.
This is the hero blueprint containing the trace for the left click of the mouse (this works and I have the duration debug on), this fires a function called Button Press which I can then assign to lots of other things to be clicked in the future.
This is the button BP which calls (casts) a function within which sets a int variable. I can’t get this to cast to the teleport (Portal) blueprint and I can’t reference other portals without getting an array of all actors of “” type. Hence a int as it would call a position in a array.
The biggest problem I’m having is understanding why its so hard to do this. I have in the past built a whole teleport door system with buttons in source without reading one tutorial and it contained many more destinations.