Better Spawns and Better Travel (BSABT) - here is the code to add teleport to any thing in the map
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)
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
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)
This works for me, thanks.