refering to an object
Posted: 2005-07-14 20:12:02
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
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