Page 1 of 1

recently ditched steam in favour of orion, and need some help

Posted: Sat Jan 18, 2025 1:33 pm
by Geriatric
need some help specifically in the area of acquiring a target and just auto attacking it

i dont want it to do anything fancy like adding discordance or using abilities or chasing the target down
absolute bare bones
next target
attack target

Re: recently ditched steam in favour of orion, and need some help

Posted: Sat Jan 18, 2025 7:26 pm
by Alibaster
I use this for a primary ability attack. You can change the "Useability" line to secondary as well

function attackClosestv2()
{
Orion.IgnoreReset();
Orion.Ignore(self);
while (true)
{
var enemy = Orion.FindType('-1 | 0x0191 | 0x0190 ', -1, 'ground', 'mobile | near | ignorefriends', '15', 'gray | criminal | enemy | red');
Orion.Wait(50);
if (enemy.length > 0)
{
Orion.UseAbility('primary');
Orion.TargetObject(enemy[0]);
Orion.Wait(50);
Orion.Attack(enemy[0]);
Orion.Wait(1000)
}
}
}

Re: recently ditched steam in favour of orion, and need some help

Posted: Sat Jan 18, 2025 10:55 pm
by Geriatric
will it still work if i take that line of code out about the use primary ability?

Re: recently ditched steam in favour of orion, and need some help

Posted: Sat Jan 18, 2025 11:31 pm
by Alibaster
no idea. I can't script. I just grab scripts wherever I can get them