Anyone managed to find a workaround for GetTarget():GetClass()? I closed my plugin project because of this 2 years ago, tried now - same thing. This function doesn't exist. The question is - why? Why we can't get the target player/creep class? We can get name/hp/mana, but not the class.
The only workaround I can think of would be to allow the user to manually maintain a list mapping character names to classes.
As for why the function isn't available -- I doubt it is the result of a deliberate policy decision. Unfortunately the Lua API has never been officially supported, so we have to wait for one of the devs to get in the mood to spend his free time on it. You could make the feature request on the official forum, but don't hold your breath waiting for a response. ;)
Edit: See also Garan's reply.
|All times are GMT -5. The time now is 08:22 AM.|
vBulletin® - Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.