Difference between revisions of "PlayerNear"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with "{{Template:PlayerNear}} Category:EventMacro_Automacros Category:EventMacro_Conditions_State")
 
m (4epT moved page playerNear to PlayerNear over a redirect without leaving a redirect)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 21:52, 12 September 2021

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