sup mates
im having just a quick question about objects
lets have a look at the following script (its dumb but it shows my problem):
sub test()
if uo.gethealth(lastattack) > 0 then
uo.print ("target alive")
endif
end sub
when i wanna exec it, it says: "variable undefined - lastattack"
but why? lastattack is meant to a pointer to the object(player) i attacked last..
and when i do something like
uo.cast ("'Flame' lastattack") it works..
so where is the misstake in the 1st script?
kthx for answers
refering to an object
Moderators: Murderator+, Murderator
refering to an object
Last edited by verY on 2005-07-14 20:25:48, edited 1 time in total.