Quick question about wingmen

The place to discuss scripting and game modifications for X³: Reunion.

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

Post Reply
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Quick question about wingmen

Post by fud » Mon, 8. May 06, 01:44

It pains me to know end to buy 10 fighters at a time, and have to set them to wingman one at a time. Is there a quick/drity way to do this as a group, like tie it with the set homebase?


I've tried using the ships as an array with "ship> set as player wingman [TRUE]" (sorry, going from memory. Needless to say, that didn't work.

I'm sure it's very easy, I'm just missing it.

User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot » Mon, 8. May 06, 10:29

you cant tap in the set homebase command ..
its a hardcoded command (it doesnt use scripts)

but to simply get a group of ships and set something on them ..
take them as a formation ..
like when you buy 10 ships .. make 9 follow the other ..

no you can set whatever you want like this

Code: Select all

if [THIS] -> has formation ships
$Followers = [THIS] -> get formation followers

else
$Followers = create array size 0
end

append [THIS] to array $Followers

$No.Follow = size of array; $Followers
while $No.Follow
dec $No.Follow
$Ship = $Follow [$No.Follow]
$Ship -> set as player wingman; [TRUE]
end

return null

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Mon, 8. May 06, 16:06

Ah ha. Cheers. I'll give that a shot. I just thought it'd be easier to do a group "set as wingman" sorta thing.

Thanks.

Post Reply

Return to “X³: Reunion - Scripts and Modding”