Simple way to persist randomized teleporter exits?
I am trying to figure out how to "randomize" teleporter exits from three teleporter entrances but I would like them to persist during each instance of the game such that entrance A can take you to only one of exit A, B or C but once it has chosen an exit, entrance B will never take you to the same exit, nor will entrance C.
For example: Entrance A sends you to random Exit A, B or C. Exit B is randomly chosen. Entrance A will now always take you to Exit B. Entrance B sends you to random Exit A or C (since Exit B is assigned to Entrance A). Exit A is randomly chosen. Entrance B will now always take you to Exit A. Entrance C sends you to random Exit C (since Exit A and Exit B are assigned). Entrance C will now always take you to Exit C.
I have successfully randomized the teleporter exits but I am not sure how to make them persistent. My initial thought is to store the randomized outputs into an array and use the array to tell each teleporter which exit to use. I am just unsure how to network the blueprint to do this. I have attached the randomized exit for entrance A but I am not sure where to go next. If someone has an example of how to wire this blueprint to achieve my results, that would be wonderfully helpful. Thanks for any help you can give!!
You tried to use booleans? I am a newbie in UE4 and don't understood the part of random point....you know...the way you scripted in blueprint....but I know if you put a set variable (bool) after the teleport....in the next teleport points (B and C) you can use Branch nodes to compare if the player was teleported to that location....
answered Apr 17 '14 at 03:07 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here