Problem with health structs

02/23/2020 19:31 Zvend#16
Quote:
Originally Posted by sadusten View Post
Oh okay i see, thanks for your help, and the reason why i had
Code:
$mmiku = targetnextally() instead of the getagentbyname("Miku")
is because it didnt work so i just wanted her targeted and then gethealth(-1) but now i know :)
You can also read out the agent model id and work with that instead of targeting her. Miku has an unique model id which allows you to find only her by the agent model.

To be very sure u can also check, level, professions, yielded weapons, position after init etc.
OR you target her and temporary save her agent in her own global.
Then u just check if global == 0 then global = get nearest agent
Or whatever.
02/29/2020 04:34 phat34#17
Yeah we are working to getagentbyname working again... Target next ally should work fine since there is only one on this mission...