#Other than ace, no

1 messages · Page 1 of 1 (latest)

agile quest
waxen panther
#

Roger, I will give them a shot

#

I might try sending my modlist as well, if you want to take a look

#

@agile quest alright, I tried it with the ghost hawk

#

It worked

#

But it does not seem to work with modded helos

#

Yep, that seems to be the problem

agile quest
#

hmm try

_this addAction ["Go go go", {
    {doGetOut (_x # 0); (_x # 0) leaveVehicle (_this # 0);} forEach fullCrew [_this # 0, "cargo"];
}];
waxen panther
#

A sec

#

Ah

#

Alright, it was not the modded helicopter

#

It was their position

#

If they are in crew position, they won't get out

agile quest
#

if you want it to affect crew seats you can change this part fullCrew [_this # 0, "cargo"];

#

or just fill the crew seats with other ai

waxen panther
#

The frick

#

It was just working

#

Now all of a sudden, it is not working

silk charm
#

Depends. What seats and groups are they in?

#

You could do every group in the crew that's not the player's group, for example.

#

First step with scripting is to decide exactly what you want to do :P

waxen panther
#

Seems like the core issue is seats. What I want is to have everyone out except the crew. But the chopper I am using seems a bit weird. It is a Blackhawk from Flanker's helicopter pack where four dudes can have their legs dangling out as if they are sitting on the benches of a littlebird. When it's like that, they don't get out. But if any of them is sitting inside the helicopter, then it works

#

It is very strange

#

Same thing is happening with the vanilla little bird

#

If all of them are sitting on the bench, they won't get out

#

If any one of them is sitting inside, then it works

silk charm
#

Ah, well

agile quest
silk charm
#

those are cargo turrets.

#

they'll have personTurret true

#

But it does depend whether you're letting them crew real turrets, like the side guns on the ghost hawk.

waxen panther
#

The sideguns like the miniguns are being controlled by AI crew. They are fine. But in case of the ghosthawk, there are no FFV seats, so they discount easily. In case of the littlebird and the MH-60, that does not seem to be the case

silk charm
#

You can do stuff like _cargoUnits = fullCrew [_veh, ""] select { _x#1 == "cargo" or _x#4 } apply { _x#0 };

waxen panther
silk charm
#

This maybe

_this addAction ["Go go go", {
   private _cargoUnits = fullCrew [_veh, ""] select { _x#1 == "cargo" or _x#4 } apply { _x#0 };
   { (_x # 0) leaveVehicle (_this # 0) } forEach _cargoUnits;
}];
#

But you really should fix the locality thing because that's only gonna work for the host & SP.

waxen panther
silk charm
#

Might be correct:

_this addAction ["Go go go", {
    private _vehicle = _this # 0;
    private _cargoGroups = fullCrew [_vehicle, ""] select { _x#1 == "cargo" or _x#4 } apply { group (_x#0) };
    _cargoGroups = _cargoGroups arrayIntersect _cargoGroups; 
    { [_x, _vehicle] remoteExec ["leaveVehicle", leader _x] } forEach _cargoGroups;
}];
waxen panther
waxen panther
#

I can work with this

#

Thank you, once again, @silk charm and @agile quest!

waxen panther
#

Might as well as this, what should I do if I do not want the crew to dismount?

silk charm
#

With that code? Don't put them in the same groups as the cargo units and don't put them in cargo seats or FFV turrets.

#

If it kicks out other crew groups then I've screwed up somewhere :P

waxen panther
#

I can make-do with it

waxen panther
agile quest
waxen panther
#

Okay, for rappelling, I found this
[HELI_NAME] call AR_Rappel_All_Cargo

It will rappel all cargo units from 25m. Now, I have to make it work with a scroll menu command, similar to "Go, go, go"

silk charm
#

rappel/fastrope isn't real. You have to moveOut the units and then attach them to something to fake it.