The "HOOK" waypoint, can be used correctly in the editor, but it's not working if used with setWayPointType command(Scripted way).
Description
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
- Create a vehicle ( veh1 )
- Create an helicopter with crew in it ( hooker )
_group1 = group hooker;
_wp1 = _group1 addWaypoint [veh1,0];
_wp1 waypointAttachVehicle veh1;
_wp1 setWaypointType "HOOK";
The helicopter will simply stops in mid air near the vehicle,without hooking it.
Event Timeline
Hello,
thank you for the feedback.
I have tried to use the repro steps you have provided and it seems to work just fine using Huron + Hunter. When using the Slammer instead of Hunter, I observed the issue you are referring to, however this is correct since it's too heavy for the Huron.
Might this be it?
Hi,thank you for the answer.
Actually I was trying to use a taru and an ifrit,and then tried with Huron + Ifrit,with no luck.
This is the mission i'm using
But , as it seems,the issue is only related to some kind of errror on my side.
Sorry for opening this uselessly.
I used the repro steps provided and tried Taru + Ifrit, seems to work fine.
If you find anything that might be relevant to the case and help me reproduce the issue, please let me know.
Its a problem with the "createVehicleCrew" command.
better do not use it, or do it like this:
heli = createVehicle ["B_Heli_Transport_03_F",getpos cargo vectoradd [-100,-100,40],[],0,"FLY"];
createVehicleCrew heli;
heligroup = group driver heli;
{moveout _x; _x moveInAny heli} foreach units heligroup;
_wp = heligroup addWaypoint [cargo,0];
_wp waypointAttachVehicle cargo;
_wp setWayPointType "HOOK";