mistahmikey
New Member
- Joined
- Jun 29, 2015
- Messages
- 161
Attached to this post you will find my cut at a flying tag, FlyParabolicArcTo, which I have been using for a while now and has been very reliable. It will fly a parabolic arc (surprise!) in the Y plane over the 3D line connecting your current 3D position and a specified 3D destination. The attributes of FlyParabolicArcTo are:
XYZ = "<x>,<y>,<z>" - 3D coordinate of the termination of your flight
Radius = "<distance>" - the flight ends when you arrive within the 3D Radius of XYZ (default: 2.0)
MountId = "<mount id>" - the ID of the mount you wish to use to fly (default: 45 (black chocobo))
MaxHeight = "<distance>" - the 2D Y height above the midpoint of the 3D line connecting your current position and XYZ, i.e, the apex of the parabola (default: 30)
MinDistanceToFly = "<distance>" - the minimum 3D distance to travel in order for the toon to take flight - for anything less, will simply move the toon on the ground (default: 10)
LandAtDestination = "<true/false>" - if "true", will request the toon to land when it arrives within Radius of XYZ (default: true)
DismountAtDestination = "<true/false>" - if "true", will request the toon to dismount when it arrives within Radius of XYZ (if LandAtDestination = "false", this will be ignored if the toon is not prevented from flying due to MinDistanceToFly) (default: true)
One problem that I was having with other flying tags that this one corrects is that the flight motion will not "stutter" between waypoints because it overshoots them - it ensures it will never "turn back" to a waypoint.
You need to install this somewhere under your "Plugins" directory tree. For example, I have mine installed in the directory "Plugins/OrderbotTags".
As a bonus, also attached is an Orderbot script that uses this tag to mine Hardsilver Ore/Wind Crystals. You will need to change line 135 to specify the equipment set your miner uses. The overall motion of this script is very botty (even though the flying parts are truly a thing of beauty), so beware, but I have run it overnight without incident. It does avoid one of the nodes to decrease the bottiness a bit, but not that much.
I believe this tag could be used to "piece together" a multi-segment flight of parabolic bounces without landing (by setting LandAtDestination/DismountAtDestination to false for all segments but the last), but I haven't tried or tested it. So don't be shy - be a guinea pig!
A final note: the flight path is not checked for any obstructions, nor does it try to avoid obstructions. It will gladly fly into whatever obstacle your parabola happens to intersect. So pick your start, XYZ and MaxHeight values appropriately if you have an obstacle-rich flight path.
Have fun flying like an artillery shell![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
XYZ = "<x>,<y>,<z>" - 3D coordinate of the termination of your flight
Radius = "<distance>" - the flight ends when you arrive within the 3D Radius of XYZ (default: 2.0)
MountId = "<mount id>" - the ID of the mount you wish to use to fly (default: 45 (black chocobo))
MaxHeight = "<distance>" - the 2D Y height above the midpoint of the 3D line connecting your current position and XYZ, i.e, the apex of the parabola (default: 30)
MinDistanceToFly = "<distance>" - the minimum 3D distance to travel in order for the toon to take flight - for anything less, will simply move the toon on the ground (default: 10)
LandAtDestination = "<true/false>" - if "true", will request the toon to land when it arrives within Radius of XYZ (default: true)
DismountAtDestination = "<true/false>" - if "true", will request the toon to dismount when it arrives within Radius of XYZ (if LandAtDestination = "false", this will be ignored if the toon is not prevented from flying due to MinDistanceToFly) (default: true)
One problem that I was having with other flying tags that this one corrects is that the flight motion will not "stutter" between waypoints because it overshoots them - it ensures it will never "turn back" to a waypoint.
You need to install this somewhere under your "Plugins" directory tree. For example, I have mine installed in the directory "Plugins/OrderbotTags".
As a bonus, also attached is an Orderbot script that uses this tag to mine Hardsilver Ore/Wind Crystals. You will need to change line 135 to specify the equipment set your miner uses. The overall motion of this script is very botty (even though the flying parts are truly a thing of beauty), so beware, but I have run it overnight without incident. It does avoid one of the nodes to decrease the bottiness a bit, but not that much.
I believe this tag could be used to "piece together" a multi-segment flight of parabolic bounces without landing (by setting LandAtDestination/DismountAtDestination to false for all segments but the last), but I haven't tried or tested it. So don't be shy - be a guinea pig!
A final note: the flight path is not checked for any obstructions, nor does it try to avoid obstructions. It will gladly fly into whatever obstacle your parabola happens to intersect. So pick your start, XYZ and MaxHeight values appropriately if you have an obstacle-rich flight path.
Have fun flying like an artillery shell
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Attachments
Last edited: