Page 1 of 1

Distance from lasttarget

Posted: 2004-07-06 21:25:31
by pheeko
hello, i have a little prob! how can I get distance from target ?
i used uo.getdistance("target") but i'm not able to put it in a var or to read/print it -.-

still i can use "if uo.gettdistance blablabla", but i need it in a var or to be printed/read

help me pliz, if u can :)

Posted: 2004-07-06 21:42:06
by Yoko
maybe "lasttarget", not "target" ?

Posted: 2004-07-06 22:10:15
by pheeko
yeah "target" is "lasttarget" but still i can't do something like uo.print(uo.getdistance("lasttarget")) or var bum = uo.getdistance("lasttarget")

and that's my prb

thx in advance

Posted: 2004-07-07 01:03:06
by Boydon
Tried with:

uo.print(str(uo.getdistance("lasttarget")))

??