Page 1 of 1

problem in LastTarget

Posted: 26.07.2014 23:51
by -k-
ok, when i use 'self' (TargetToObject(self), WaitTargetObject(self)...) the LastTarget changes also for 'self'. this is normal? because i want the LastTarget continues on the enemy. =[[

thx

Re: problem in LastTarget

Posted: 27.07.2014 14:53
by Vizit0r
yes, now "Self" drop the target to PayerID

Re: problem in LastTarget

Posted: 28.07.2014 13:56
by Crome696
Runuo and other shardsoftware also handle Target as object containing any entity you last got through any target interaction.
So if you use any method to target to anything it will be assigned to Character.Target.

Re: problem in LastTarget

Posted: 28.07.2014 17:25
by -k-
the problem is, i set target enemy
.target, in my shard, set cursor target, i click in enemy and LastTarget 'Stealth' accept the ID,

cast('Fireball')
WaitTargetObject(LastTarget);

i cast in enemy. But when i use

cast('heal')
WaitTargetObject(self);

the LastTarget 'Stealth' change to my char ID, and when i use again,

cast('Fireball')
WaitTargetObject(LastTarget);

i cast the magic in myself