Teleport event doesn't work, unsure why?

Hello!

I’ve been trying to get started with Udon and am upgrading a current world which uses teleport events set by box colliders with triggers. Here’s what I have so far:

Unfortunately, this doesn’t seem to work but I’m unsure why. I wish I had more to add, but I’m honestly still figuring all of this out.

You need to use a Transform for the location and rotation, and a OnTriggerEnter would fire for any thing that collides on the layer it’s on, so unless it only collides with the playerlocal layer you would teleport every time a collider hits it, I made a simple graph that should work, I haven’t tested though. uses the OnControllerColliderHit event, it’s the same as onAvatarHit with SDK2 Triggers.

Thank you so much for your reply! I just tested this out but sadly it looks like it’s also not working (testing in desktop mode if that makes any difference). Gonna keep looking at it to see if I messed something up.

Edit: Could this be because my colliders are set as “triggers” in the inspector?

I solved it this way:

Code

AOWX227bNhjHXyXQtWiQFMWDgVwshw1Fh7ZbXN8MgfDxlGpVJE+S2xlpnmwXe6S9wqg4PiTSPCFLigKDfWFKpPT9f9/Rf/3x5030CYqli6a/3ER+WRRv4DosopMaSvMhiqNlbsNSUk3BY4OEkAwxIjhSAmukiGBYGGucZ2HzomryNq/KaHoT/R5NWconOI5W0RQxiSf4No7Kyrr3r86a8L5IkVTbxEokpBOIMQtIepcilVBBNfbYp+ILji7jyBfV580pLB1QCoCY0hgxEB5JljJkhQRFiGEUVDClO9a9bN6pa+7kLcu8Xb3VvzrTzteab6K8bNqg1L06i6adfU1b5+XV/e0our28jR9wuVg1rbu+uNs1ybJqkZ3/toQiPDjL9u89XNyvTqqqcFBuqY4B0KdKsDxEVTOKWSqTcBNs4CMNCpc0spiT4D1swMtAdU1oD+zz8IqfcmxNZ7KGFR9dN6aqi1zHR3NXN0H4MZvg7hMfnS6Ldlm749It2xqK+OjdUhe5ee1Ws+qjK4+1EJCalBOVMIel+vK+M+a8vMpLNzn9ADWY1tWnVdnWVVG4+p8cPFstXHDvrHrowPVq678xqPv+Q5Ts0kLRngOd0VhC6hGhIkSFYAxp60OUE2OxV1LZlPbTYlSGvkxO7DFePymQ+8G1HcMNuO73FtsYgQPYEo432BLJetgITwFrYRB4IIjRBAdnMIWwNwKUMimQtIftZYCcf3Jlm70tZ3V+deXq8zLE3Fb9GDsH1LOEHgiaR8EwKjAfaz/g1lnoBo2v6uvg2SvXZnXVQmdclu1t+mkJQWfZ2bxNEO9ZokOFxkANYqmzCDDjiGjMJbZAErB9rZRtlBLW9zNITylRCilGQ/RI55HWniFphOfGO2stfCU/HyC0kfSA0Dy8rKqTLR5DqBGOaSQUCa2MM4tUlwiCY86tMjzRA111h4dS+S3jCTUgm0Odgy52yT/GvqGayQ+qfgE9L9iUnExk4o1G2isX0hkkkhxUqILAiFRCS8r7OOc/n16cvT6Bxr1x7eeq/rgeQbpo+7EyULwrYOXqLNvtC7/WF79b5LucFDoEmvYoxSINOUkSpLQA5FmagsaWS4UHhg6+HTqShB8uP/9WWIYN7NqtK9yiqttZNZQ2w7Vm02HmVW63GkfOiI/HVbprMHxgsBoB7m6wGpPWdxvHlMehUe25htsnDWtf+1gveu4rSjZUfXczxpgU65cZorZdlrOBMhPvff8P4/Oiyst2k5b/zbz7Pz/Pa9+sDq/49sz6HormqXZ1EX95+zc=

2 Likes

I love you :smiley: This works perfectly

1 Like

The main reason to why you been having issues and needing to do workarounds can be explained by this guide.