PlayerNearDist: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with "{{Template:PlayerNearDist}} Category:EventMacro_Automacros Category:EventMacro_Conditions_State")
 
m (Conversion script moved page PlayerNearDist to playerNearDist: Converting page titles to lowercase)
(No difference)

Revision as of 22:35, 26 April 2021

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