Quote Originally Posted by Efren View Post
You can't lie to the code, an this proves is the same thing...
Code:
function Creature:isTarget()
	return self._id == getSelfTargetID()
end


getTargetId() Doesn't exist, Probably you meant to say getSelfTargetID()

As I say before "getById(isTarget())" would be the way to get the name of your current target.

getById() is used to get their name by their id, so writing an id inside the "()" will tell you the name.
isTarget() will return the id of your current target.

This can also be written like the following codes.
Code:
GetByID(getSelfTargetID())
--or
getCreatureNameById(getSelfTargetID())
--or
GetByID(isTarget())
--or
getCreatureNameById(isTarget())
an example implemented on a script would be.
(examples taken from @sirmate all credits for him)
Code:
local target = Creature.GetByID(getSelfTargetID())
--or just the one I made
local targetname = Creature.GetByID(isTarget())
No dude, one returns a boolean and the other returns a integer. Creature.GetByID(isTarget()) simply won't work.

@Jo3

Sorry, I can't help it. Plus, I see no bad, seeing as we're arguing without flaming or bad words.