targetting commands

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

echo_buzz
Posts: 31
Joined: Sat, 20. Dec 03, 12:12
x2

targetting commands

Post by echo_buzz »

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 ?
User avatar
Logan321
Posts: 168
Joined: Thu, 25. Dec 03, 04:34
x2

Post by Logan321 »

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
Mehrunes
Posts: 645
Joined: Wed, 3. Dec 03, 03:10
x4

Post by Mehrunes »

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.
You in the wrong forum, friend. :P
Mehrunes
Posts: 645
Joined: Wed, 3. Dec 03, 03:10
x4

Re: targetting commands

Post by Mehrunes »

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 ?
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.

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.
echo_buzz
Posts: 31
Joined: Sat, 20. Dec 03, 12:12
x2

Post by echo_buzz »

fixed it.
moderator delete the thread if you want :)

Return to “X²: The Threat - Scripts and Modding”