Jump to content

AI Helicopter Unhook problem in multiplayer

Recommended Posts

Hello! There is a script I found on one of the forums and formatted it for my own use. However, I have a little problem with it:

The task would be for the helicopter pre-positioned in the editor to lift the also pre-positioned Prowler jeep with a wire rope and transport it to the player's (Alpha_1) current position (WP1) and place it there. It then leaves the area and is deleted.

When I test, it works fine in both Single player and Multiplayer modes as long as only one player is present on the quest. Once we’re two, he’ll deliver the jeep to where I’m going, but he’ll put it down for a moment and then pick it up again and take it. I emphasize only if we are already on more than one mission.

What could be the problem? What needs to be changed to work properly? Do I need to set anything else for multilayer mode?

Thanks in advance...







_success = Supply_Heli_1 setSlingLoad Jeep_3;

_POS11 = getPosATL Alpha_1;
_POS12 = getMarkerPos "Supp1_WP2";
_POS13 = getMarkerPos "Supp1_WP3";

_Supp1wp1 = SupplyTransport_1 addWaypoint [_POS11, 0];
    _Supp1wp1 setWaypointType "UNHOOK"; 
    _Supp1wp1 setWaypointSpeed "FULL";
    _Supp1wp1 setWaypointBehaviour "CARELESS"; 
    _Supp1wp1 setWaypointCombatMode "GREEN";
    _Supp1wp1 setWaypointStatements  ["true", "Supply_Heli_1 flyInHeight 10;"];
    _Supp1wp1 setWaypointStatements  ["true", "_success = Supply_Heli_1 setSlingLoad objNull;"];

_Supp1wp2 = SupplyTransport_1 addWaypoint [_POS12, 0];
    _Supp1wp2 setWaypointType "MOVE"; 
    _Supp1wp2 setWaypointSpeed "FULL";
    _Supp1wp2 setWaypointBehaviour "CARELESS"; 
    _Supp1wp2 setWaypointCombatMode "GREEN";

_Supp1wp3 = SupplyTransport_1 addWaypoint [_POS13, 0];
    _Supp1wp3 setWaypointType "MOVE"; 
    _Supp1wp3 setWaypointSpeed "FULL";
    _Supp1wp3 setWaypointBehaviour "CARELESS"; 
    _Supp1wp3 setWaypointCombatMode "GREEN";
    _Supp1wp3 setWaypointStatements ["true", "{deleteVehicle _x;}forEach crew Supply_Heli_1; deleteVehicle Supply_Heli_1;"];




Share this post

Link to post
Share on other sites
On 3/28/2022 at 2:54 AM, Gunter Severloh said:

What Heli script did you use?

The heli and jeep are pre-placed in the editor.

Share this post

Link to post
Share on other sites
On 3/29/2022 at 11:35 AM, pierremgi said:

Try to run your sqf on server only.


The problem seems to have been that i started the game (LAN) from the editor with the "play in multipalyer" option. When I start normally as a multiplayer server, it works. If the error occurs again, I will signal it to you. I apologize for my hasty writing.

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