Page 1 of 1
unit:inArea() method problem
Posted: Mon Jul 06, 2020 10:07 am
by DracheTek
The unit pointed by red arrow in the picture is apparently sitting in the area specified in the code, but the code returns false. Please tell me if I am missing something important.
Thanks.
RE: unit:inArea() method problem
Posted: Mon Jul 06, 2020 10:18 am
by DracheTek
try picture in zipped format. for some good reason i don't have access to most of useful picture embed site. sorry.
RE: unit:inArea() method problem
Posted: Mon Jul 06, 2020 11:08 am
by KnightHawk75
It's expecting table with list of rp names, not table of rp details.
local target = SE_GetUnit({guid="IHX5IQ-0HM11KKET26EB"})
local retval = target:inArea({ 'RP-1509', 'RP-1510', 'RP-1511', 'RP-1512'})
print(retval) --should return yes\true
RE: unit:inArea() method problem
Posted: Mon Jul 06, 2020 11:18 am
by DracheTek
Tested and worked. Thank you very much.