Template:PlayerNearDist

From OpenKore Wiki
Revision as of 20:58, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''PlayerNearDist''' state Conditions of the automacro eventMacros.</noinclude> ;PlayerNearDist :* Description: Ch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the PlayerNearDist state Conditions of the automacro eventMacros.
PlayerNearDist
  • Description: Checks if there is a player in a given distance which name matches the given regex.
Syntax:
PlayerNearDist <Regex> <Math condition operators>
Example:
PlayerNearDist /bad gm/ < 10
PlayerNearDist /good guy healer/ <5
Set variables:
$.PlayerNearDistLast => Saves the name of the last player that made PlayerNearDist become true
$.PlayerNearDistLastPos => Saves the position of the last player that made PlayerNearDist become true
$.PlayerNearDistLastBinId => Saves the openkore ID of the last player that made PlayerNearDist become true
$.PlayerNearDistLastDist => Saves the distance of the last player that made PlayerNearDist become true