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
recently ditched steam in favour of orion, and need some help
Re: recently ditched steam in favour of orion, and need some help
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)
}
}
}
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)
}
}
}
Alibaster in game!!
Re: recently ditched steam in favour of orion, and need some help
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
no idea. I can't script. I just grab scripts wherever I can get them
Alibaster in game!!