Teleports using channels
So I want to create teleporter relays. Both 1-way and 2-way. How I want it to be set up is when placing down the blueprint component and I can input a channel number. The teleporters with the same channel numbers will connect with eachother.
I also want to have the teleporter show the other side. I think that can work with a SceneCapture2D but again, I don't know how to make it work with channels.
asked Nov 09 '15 at 07:06 PM in Blueprint Scripting
My solution is that you should build a blueprint that include a camera, a SceneCapture2D, a plane/ mesh to display captured scene, and a trigger volume. Also a variable to hold the channel number. So when you player get near one of your teleporter, their skeletal mesh will overlap with the trigger volume. Then either you let user enter the channel number, or you use the current channel number to search for the first instance that hold the same channel number. Save that instance down to a local variable for ease of reference, then you get that instance SceneCapture2D, active it and set it to send data to a Render Target Texture (remember to set it's solution first), then create some material from that texture, then assign that material to your display plane/ mesh, The other function is simple, just get the instance world location, add in some offset when your player want to teleport. And when your player teleport to other side, just repeat the above actions, but this time from the newly teleported side.
Note: you can create Render Target Texture and the material before hand and then assign it as above. Remember to turn off SceneCapture2D when you don't really need them because those component take a lot of resource and decrease your fps a lot.
answered Nov 10 '15 at 10:12 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here