See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: Multiple docks crew transfer  (Read 303 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 289
  • Country: United States us
  • Karma: 4
28 February 2017, 12:25:42
Is there a way to select which docked ship to put crew in?

I have 4 docks.  Each ship has a dock/airlock
sets up airlock/dock
Code: [Select]
void TESTVC::SetUMMUAirlockPos(void)
{
int AirlockStatus = Crew.GetAirlockDoorState();
Crew.SetActiveDockForTransfer(iActiveDockNumber);
switch (iActiveDockNumber)
{
case 0: //LEFT
Crew.DefineAirLockShape(AirlockStatus, -6, -2, -4, 3, 6, 9);
Crew.SetMembersPosRotOnEVA(_V(-4.5, 1.179, 7.6), _V(0, -1.5, 0));


break;
case 1: //RIGHT
Crew.DefineAirLockShape(AirlockStatus, 6, 2, -4, 3, 6, 9);
Crew.SetMembersPosRotOnEVA(_V(4.5, 1.179, 7.6), _V(0, 1.5, 0));

break;
case 2: //top
Crew.DefineAirLockShape(AirlockStatus, 1, -1, -4, 3, -1, 1);
Crew.SetMembersPosRotOnEVA(_V(0, 5.5, 0), _V(0, 1.5, 0));

break;
case 3: //top
Crew.DefineAirLockShape(AirlockStatus, 1, -1, -4, 3, -1, 1);
Crew.SetMembersPosRotOnEVA(_V(0, 1.179, 0), _V(0, 1.5, 0));

break;
}
}
select which airlock/dock

Code: [Select]
else if (key == OAPI_KEY_N)// SELECT
{
DOCKSELECTED = DOCKSELECTED + 1;

if (DOCKSELECTED == 1)(iActiveDockNumber == 0);
if (DOCKSELECTED == 2)(iActiveDockNumber == 1);
if (DOCKSELECTED == 3)(iActiveDockNumber == 2);
if (DOCKSELECTED == 4)(iActiveDockNumber == 3);
SetUMMUAirlockPos();


I can transfer crew but it is always number 1 dock


Offline gattico

  • Sr. Member
  • ****
  • Posts: 289
  • Country: United States us
  • Karma: 4
Reply #1 - 01 March 2017, 14:22:14
Fixed:
Code: [Select]
else if (key == OAPI_KEY_N)// SELECT
{
DOCKSELECTED = DOCKSELECTED + 1;

if (DOCKSELECTED == 1)(iActiveDockNumber = 0);
if (DOCKSELECTED == 2)(iActiveDockNumber = 1);
if (DOCKSELECTED == 3)(iActiveDockNumber = 2);
if (DOCKSELECTED == 4)(iActiveDockNumber = 3);
SetUMMUAirlockPos();
iActiveDockNumber was always 0