Guider

Description

Guider 🔗

API for creating waypoints that fire callbacks on player approach. Useful for quests management, etc.

API 🔗

  • guider.add_waypoint(player, def): Create a waypoint for a player. Returns a handler.
  • guider.destroy_waypoint(player, handler): Destructs a waypoint by the player object and the handler.

Waypoint definition 🔗

{
    name = "Display Name", -- string, optional, default: stringified position
    image = "guider_marker_default.png", -- string, optional, default: guider_marker_default.png
    suffix = " m", -- string, optional, default: none
    percision = 10, -- integer >= 0, optional, default: 10 (1 d.p.)
    text_color = 0xffffff, -- integer of color, optional, default: 0xffffff (white)
    scale = { x = 2, y = 2 }, -- image scale in table (x, y) or number, optional, default: 2
    image_height = 16, -- image height in pixel, optional, default: 16
    pos = vector.new(0, 0, 0), -- posiiton of waypoint, mandantory
    on_approach = function(player, handler) end, -- Called on approach, optional
    approach_distance = 5, -- Maximum distance to be considered approaching, optional
}

Both on_approach and approach_distance must be set for approach detection to work.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2025-07-26

Download

2025-07-26 02:14 UTC

2025-07-26 🔗

  • One of the most foolish mistake I've ever made

2025-07-25

Download

2025-07-25 02:13 UTC

2025-07-25 🔗

  • Fix created_at nil

2025-07-13

Download

2025-07-13 02:13 UTC

2025-07-13 🔗

  • Add max_age
All releases

Information

Provides

guider

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
guider
Languages
English
License
LGPL-3.0-or-later for code,
CC0-1.0 for media.
Maintenance State
Beta
Added
2025-07-07 04:58 UTC
Maintainers
1F616EMO