Moderator: MacroQuest Developers
Code: Select all
/if n $distance($calc($target(y)-$cos($target(heading))*10),$calc($target(x)-$sin($target(heading))*10))<3
Without all the fancy computations, it would just look like$distance(y,x)
Returns the distance to a location
Code: Select all
if n $distance(y,x)>3Code: Select all
/if thing1==1 {
/if thing2==2 {
/dosomething
}
}Code: Select all
/varset l0 0
/if thing1==1 /varset l0 1
/if thing2==2 /varset l0 1
/if $l0==1 /dosomething