Template:PlayerNear

From OpenKore Wiki
Revision as of 20:56, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''PlayerNear''' state Conditions of the automacro eventMacros.</noinclude> ;PlayerNear :* Description: Checks if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the PlayerNear state Conditions of the automacro eventMacros.
PlayerNear
  • Description: Checks if there is a player near which name matches the given regex.
Syntax:
PlayerNear <Regex>
Example:
PlayerNear /john/
PlayerNear /henry the best TM/i
Set variables:
$.PlayerNearLast => Saves the name of the last player that made PlayerNear become true
$.PlayerNearLastPos => Saves the position of the last player that made PlayerNear become true
$.PlayerNearLastBinId => Saves the openkore ID of the last player that made PlayerNear become true
$.PlayerNearLastDist => Saves the distance of the last player that made PlayerNear become true