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 140
    • Issues 140
    • 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
  • #1095

Closed
Open
Created Apr 15, 2023 by blockutis@blockutis

New yaw placeholder and condition for yaw%360

Summary

The yaw placeholder can exceed 360, which means if a mob rotates 370 degrees for example, the yaw placeholder will return 370 instead of 10. My suggestion is to add another placeholder that represents the result of yaw%360, as well as a "yaw%360" condition, because currently the only way to get the mob's actual yaw is using a variable with math, and the yaw condition is kind of useless when the yaw can go outside of the normal range of 0-360.

Usage

The new placeholder can be used instead of using math. The new condition can be used to for example test if a mob is looking within a certain yaw range. For example if it's yaw is 0-180 or 180-360, this would be very helpful, and is not possible with the current yaw placeholder.

Value

Quality of life as well as adding the ability to reliably check if a mob's yaw is within a certain range.

Priority

Medium It isn't a gamebreaking bug, but it kind of sucks to not be able to check a mob's yaw, and some skills won't be possible until this gets added.

Implementation

Addition of a new placeholder and condition, simply representing the value of yaw%360

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking