Reference
Every stable call on one page. Anything not listed here is the plugin's own and may change without notice.
_G.AXIOM_NAV
| Field | Kind | Returns |
|---|---|---|
client | field | The shared client, nil until loaded |
VERSION | field | The version string |
report_logs(opts?) | dot call | Log rows for a bug report (Bug reports) |
report_state() | dot call | Up to 12 plain values |
perf_state() | dot call | state, waiting |
Walk commands
All end with done(ok, reason, detail), called once. Details: Walk commands.
| Signature | Notes |
|---|---|
client:move_to(place, done?, opts?) | Walk options |
client:move_direct(place, done?) | Straight line, no route |
client:travel_to(place, done?, opts?) | Anywhere: by ship, zeppelin, Skycutter, the Deeprun Tram or a lift where quicker, else a walk (Forever). place.map_id. Since v1.35 |
client:follow_path(points, done?, opts?) | opts avoid_mobs, avoid_ring |
client:move_to_sight(target, done?, opts?) | opts range, min_range, eye, target_height + move_to's |
client:swim_up(done?, opts?) | opts z, timeout_ms |
client:swim_down(z?, done?, opts?) | no z: to the floor |
client:leave_patch(place?, done?) | done(ok, reason, { spot, why }) |
client:set_jump_fences(on) | The Jump fences setting for every walk. Prefer the jump_fences walk option |
client:stop() |
Questions
| Signature | Answer |
|---|---|
client:is_moving() | boolean |
client:get_state() | idle, navigating, arrived, failed |
client:get_state_detail() | e.g. navigating.recovering.strafing; navigating.travelling.<phase> on a trip (ship, zeppelin, tram, lift; since v1.35) |
client:get_progress() | { percent, waypoints_remaining, total_waypoints, current_index } |
client:get_route() | points, or nil |
client:get_route_step() | index |
client:get_destination() | vec3, or nil |
client:get_travel() | { phase, leg, legs, path, eta_s }, or nil. Since v1.35 |
client:get_road_share() | 0 to 1, or nil |
client:get_mob_stats() | { routes, bent, no_way, last } |
client:get_jump_fences() | boolean |
client:get_jump_stats() | { offered, jumped, refused, failed, remembered } |
client:get_drop_stats() | { offered, taken, refused, failed, last_loss, remembered } |
client:get_dismount_needed() | table, or nil |
client:get_ride_from() | table, or nil |
client:get_mount_here() | table, or nil |
client:get_mount_stats() | counters since F6 |
client:get_water() | table (Questions) |
client:is_server_available() | boolean |
client:get_data_build() | table, or nil |
client:check_spots(points, done, opts?) | done(ok, results): one table per point |
client:find_path(from?, to, done, opts?) | done(ok, { points, distance, partial, snapped, end, ... }): the route, nothing moves. Since v1.29. |
client:find_distance(from, to, done, opts?) | done(ok, { distance, reached, cut, stop, left, ... }); opts.points = true adds points, the way every spacing yd (since v1.35) |
client:has_line_of_sight(from, to, done, opts?) | done(ok, { clear, hit_distance, hit }) |
client:find_sight_spot(target, done, opts?) | done(ok, { found, already, spot, walk, distance, found_by }) |
client:get_height(place, done) | done(ok, { height }) |
A question about a place that is not in the world (infinity, not a number, beyond 20000 yd) answers
done(false, nil, "invalid position: ...").
Events
client:on(name, fn, owner?), client:off(owner | id | name, fn). Names: Events.
Failure reasons
| Code | Meaning |
|---|---|
unreachable | No way there on foot, no floor there, trapped, or not a place in the world |
max_stuck_exceeded | Stuck too often |
max_repath_exceeded | Pushed off the way too often |
server_timeout | The route server did not answer |
needs_dismount | Still mounted at the get-off point after the wait |
portal_no_jump | On a pad and not moved by the game within the wait |
banned | This account is banned from AXIOM NAV: every walk command refused, nothing moves. Since v1.28. |
Old names
Still answering, but they will go. Each use writes a log row naming the caller.
| Old | Use instead |
|---|---|
client:get_full_state() | client:get_state_detail() |
client:get_current_path() | client:get_route() |
client:get_path_index() | client:get_route_step() |
client:get_event_bus():on("nav.arrived", fn, { owner = o }) | client:on("arrived", fn, o) |
any "nav.<name>" event | "axiom_nav.<name>", or the short name with client:on |
"state_change", "stuck" | "state_changed", "stuck_detected" |
_G.AXIOM_NAV.create() | _G.AXIOM_NAV.client |
Removed
These answer done(false, "removed") and a console warning.
| Removed | Instead |
|---|---|
start_route, plan_route | move_to each place in turn |
replan | nothing: AXIOM NAV asks for a new route by itself |
validate_destination | check_spots |
get_route_progress | get_progress |
get_player_height | get_height with the character's position |
get_all_heights, get_player_all_heights | check_spots (floors) |
get_corridor_widths, get_corridor_opts | nothing |