Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Spawns and Better Travel (BSABT) - here is the code to add teleport to any thing in the map #57

Open
djoole opened this issue Dec 31, 2024 · 1 comment

Comments

@djoole
Copy link

djoole commented Dec 31, 2024

Hi,

I wanted to be able to fast travel/teleport to any point in the map.
I couldn't get to find the code to teleport to the custom marker, but I could find the code to teleport to any interest point in the map (like O2 cracks for instance).

If anyone is interested, you need to add this code in travel.py after line 44 :

                elif "willowinteractiveobject" in bl2tools.get_obj_path_name(self.MapObjects[temp]).lower():
                    dest_loc = self.MapObjects[temp]
                    pawn.Location = (dest_loc.Location.X, dest_loc.Location.Y, dest_loc.Location.Z + 50)
                    pawn.Controller.Rotation = (dest_loc.Rotation.Pitch, dest_loc.Rotation.Yaw, dest_loc.Rotation.Roll)

@djoole
Copy link
Author

djoole commented Jan 1, 2025

To make it work with O2 stations, you have to raise the added height a bit, otherwise you get stuck in it :
dest_loc.Location.Z + 300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant