That's not documentation, that's implementation. This is documentation, and is where the thread starter states that ALL variables and functions would be.
There's no need of writing getSelfID() instead of Creature:isSelf() or isSelf(), both works the same way just that they are written with a "diferent name". and writing EVERY SINGLE "variable" that is used for a variable that already exist would be a pain on the ass.
For example
There's no need for the users/customers of knowing the "return value" of each variable.Code:LookDirection() is the same as writing getCreatureLookDirection(self._id) Speed() is the same as writing getCreatureSpeed(self._id) Outfit() is the same as writing getCreatureOutfit(self._id) HealthPercent() is the same as writing getCreatureHealthPercent(self._id)
Is the same thing, all of 'em are the return values of a variable, just look at this code.
Code:-- On this code the variable is "Speed()" -- and the return value (for the variable to work) is getCreatureSpeed(self._id) -- So There's no need for the users/customers of knowing the "return value" of each variable. -- code starts here function Creature:Speed() return getCreatureSpeed(self._id) end
Ok then. Tell me how you find the Name of your target only using isTarget().
Last edited by Efren; 01-06-2012 at 10:22 PM. Reason: Added comment