I’m trying to build some code that basically gives the distance between a trigger and the players last location on key press.
I’m using the following code to set each trigger location in a variable:
Perform the calculation on key press then output:
Now there’s a bit of an issue there are a shed load of triggers in my map but only one active one at a time that updates the trigger position value each time, each trigger activating the subsequent one.
So trigger A once selected/triggered will move trigger A below the player surface (making it inactive) and brings trigger B to the player surface so it can now be triggered by the player.
Each time the next trigger is brought in it updates the trigger location variable.
What am I doing wrong here?