theres a command in the script called: find nearest enemy.
is there a command : find next enemy? or target next enemy?
if theres not, does anyone know how to go around it?
and also
do those arrays hold objects or integers or both ?
targetting commands
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 168
- Joined: Thu, 25. Dec 03, 04:34
I just use mouse-wheel up, it selects the next closest target, so sometimes you have to scroll past a few friendlys to get to the next enemy target, but whatever... I also have a monitor setup for my target, so I know right away what sort of ship I have targetted.
AMD Athlon 64 @ 2340MHz, 2x 512 DDR @ 520MHz, MSI NEO2 Platinum, ATI x800 XT, Windows XP Pro SP2, Catalyst 5.12
-
- Posts: 645
- Joined: Wed, 3. Dec 03, 03:10
You in the wrong forum, friend.Logan321 wrote:I just use mouse-wheel up, it selects the next closest target, so sometimes you have to scroll past a few friendlys to get to the next enemy target, but whatever... I also have a monitor setup for my target, so I know right away what sort of ship I have targetted.

-
- Posts: 645
- Joined: Wed, 3. Dec 03, 03:10
Re: targetting commands
Arrays can hold objects or integers. The "find enemy" can return an array of multiple enemies if you set that flag when calling the function. After that you can iterate through the array to find enemies and use a function to find range.echo_buzz wrote:theres a command in the script called: find nearest enemy.
is there a command : find next enemy? or target next enemy?
if theres not, does anyone know how to go around it?
and also
do those arrays hold objects or integers or both ?
Although, it might be possible to have the array sorted by range automatically, perhaps by passing Find.Nearest as part of the flags into the function as well. That's just a guess though.
-
- Posts: 31
- Joined: Sat, 20. Dec 03, 12:12