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
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
problem in LastTarget
Re: problem in LastTarget
yes, now "Self" drop the target to PayerID
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: problem in LastTarget
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.
So if you use any method to target to anything it will be assigned to Character.Target.
Stealth Development Team & Support
Re: problem in LastTarget
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
.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