Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 145
    • Issues 145
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1712

Closed
Open
Created Sep 05, 2024 by Jsteeler707@Jsteeler707

@NearestPlayer doesn't update to NearestPlayer ~onTimer

Summary

When I target @NearestPlayer with an ~onTimer trigger, it triggers to the nearest player (presumably) when the mob spawns in, and then never updates again after that. Steps to reproduce

  1. Get a friend

  2. Have friend sit next to mob sending a message to nearestplayer on timer and spawn it

  3. Have friend move further away from mob, it still targets initial player

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

Current behavior

targets player (that was closest when mob was spawned) AFTER FURTHER TESTING, it doesnt even target the closest player when it spawns... so i dont know what its targeting. it still doesnt switch targets ever. (/ mobs first target) indefinity instead of switching to nearestplayer Intended correct behavior

should switch targets to nearest player Server log file

https://pastebin.com/rjDZHPUB

Debug log snippet

https://pastebin.com/TxPXvmUd

Proposed fixes

idk force mob to consider target change to nearestplayer each trigger

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking