Jump to content

Recommended Posts

Hi guys. Google and the search on here haven't given me an anser yet.
I set up a helicopter transport from A to B which all goes well, but when player automatically disembarks, he falls on the ground (as like a paradrop, or a fish without water) and won't move. Same for the AI when you ask them to disembark.
Another (less important) thing. Is there any way that the (playable) AI embarks and disembarks the chopper automatically without me having to give them the command?

I canlive with the second problem, but the first makes my game impossible to play. Please help 🙂

Share this post


Link to post
Share on other sites

There is this command:

 

NameOfUnit action ["Eject", NameOfVehicle];

The first issue might be solved with the above too.

  • Like 1

Share this post


Link to post
Share on other sites

Try something like this in the unit's init,

this addEventHandler ["GetIn", {
	params ["_vehicle", "_role", "_unit", "_turret"];
{ _x moveInCargo (_this select 0); } forEach units group this;
}];

this addEventHandler ["GetOut", {
	params ["_vehicle", "_role", "_unit", "_turret"];
{ move out _x; unassignVehicle _x; } forEach units group this;
}];

Not sure how that'll work if the AI is playable unless the order to get out means like right freakin' now!

*not tested

Event Handlers

 

Have fun!

Share this post


Link to post
Share on other sites

Suggest using a script, or a mod like uh hem ---->

Will do everything for you and then some.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×