I was wondering if someone maybe able to help with a very annoying coding problem i’ve got.
I need to find distance between player and 4 moving triggers in the same room.
How the map works is player needs to find location A then B in a room from location 1 after which they are moved to location 2 in the same room but they now have to find location C and D.
By moving to location 2 (and because I’m pants at programming) I’ve moved the triggers for location A and B below the ground so the player can’t mistakenly walk on them to activate them.
Now here’s the tricky bit if the player can’t find location A, B, C or D, I need the player to press a key from their current location in the room that will show their distance between them and the trigger.
I also need to be able to test this to ensure if I get some values I can run a calculation to ensure its accurate.
I’ve tried the “get distance to” function on keypress between each trigger location in a variable that’s sequentially updated when each trigger is moved into the desired location, but it’s not working and I can’t test the data I get back to check.
I’d really appreciate some help!