• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

New alternative to GetUnitType?

Status
Not open for further replies.

Mahado

Epic Member
Basically my question is: What is the new alternative for GetUnitType? I want to know if there is simple method to check if the target is player, couldn't find any so far.

Unless of course GetUnitType is coming back or something. :p

- Mahado
 

Rochet2

Moderator / Eluna Dev
I looked for that second, but I didn't expect it to be in LuaEngine.h.. I see it. Was looking for it in LuaFunctions.cpp.
Its in the pushing function since it grabs the value registered for the class (type name). Its a method that all pushed objects have by default.
I just thought to make it automatic since you can. Not to write separate ones for each class we have registered.
 

Mahado

Epic Member
Cheers! And yeah, GetUnitType was there before, since I used it on couple of my scripts and they won't recognize it anymore. But, I'll those try those that you guys suggested, thanks!

Edit: Now all works, thanks again.
 
Last edited:
Status
Not open for further replies.
Top