•Cannot seam to iterate through objects to return champions or minons to create champ/minion tables managers.You can do this with a simple script:
function ObjectLoopEvent(Object,myHero) --Object is a pointer to the current object, ObjectLoopEvent is looping trough all objects each frame.
local Obj_Type = GetObjectType(Object);
if Obj_Type == Obj_AI_Hero then
if IsObjectAlive(Object) then
local hero_origin = GetOrigin(Object);
local myscreenpos = WorldToScreen(1,hero_origin.x,hero_origin.y,hero_origin.z);
if myscreenpos.flag then
DrawText("This is a champion ^^",24,myscreenpos.x,myscreenpos.y,0xffffff00);
end
end
end
end
•As above, something like GetEnemyChampions(LowHp) or LowMR etc, would be nice, atm theres no way to target and even using CurrentTaget does nothing.One of your missions as a "Core Developer" would be to code functions like GetEnemyChampions(LowHp) or LowMR to ease the life of yourself and other newbie scripters around. Also others have already used "CurrentTaget" in their scripts with success.
•Distance is not included but can be calculated in scripts, would be nice to have a target.distance automatically thoughI really might add ths, but others have a semi-distance script available already.