looking for code snip for puller/tank

kombat

Spammer
Joined
Feb 25, 2007
Messages
66
Reaction score
0
Points
0
looking for a line to ad to my combat sub, for when my tank/puller gets to far from camp/loc he will /target clear.

so something like

..if me distance is over 99 /target clear

thanks! in adv :).
 
Save the camp location (Something like this)

Code:
/declare Anchor[2]   float   outer
/varset Camp[1] ${Me.Y}
/varset Camp[2] ${Me.X}

Then do distance checks to that loc
Code:
/if (${Math.Distance[${Camp[1]}, ${Camp[2]}]} > 99) /squelch /target clear
 
Doesn't MQ2MoveUtils or MQ2Melee have an anchor feature?
 
thanks unity0110 ill give that a try.
 
tryed this today finally but was not able to get it to work , it just cleared the target over and over, thanks tho for the idea.
 
Code:
/declare Anchor[2]   float   outer
/varset Anchor[1] ${Me.Y}
/varset Anchor[2] ${Me.X}

/if (${Math.Distance[${Anchor[1]}, ${Anchor[2]}]} > 99) /squelch /target clear

try it like that
 
fuk yeah

well fuk me it works now , thanks JJ /salute