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

If you make a Client-side script you can publish it here for other players to use
Post Reply
Geriatric
Legendary Scribe
Posts: 298
Joined: Thu Dec 08, 2022 4:51 am

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

Post 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
Alibaster
Legendary Scribe
Posts: 268
Joined: Wed Nov 16, 2016 11:02 am

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

Post 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)
}
}
}
Alibaster in game!!
Geriatric
Legendary Scribe
Posts: 298
Joined: Thu Dec 08, 2022 4:51 am

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

Post by Geriatric »

will it still work if i take that line of code out about the use primary ability?
Alibaster
Legendary Scribe
Posts: 268
Joined: Wed Nov 16, 2016 11:02 am

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

Post by Alibaster »

no idea. I can't script. I just grab scripts wherever I can get them
Alibaster in game!!
Post Reply