p207gt 0 Posted December 30, 2022 Hey everyone help me. AI-squad won't board the AI-helicopter. [ _alpha03 , 2 ] setWaypointType "GETIN"; At this part the squad will remain standing. Heli land for "GETIN". "marker_4"-------Heli spawn position. //----------code--------------------------------------------------------------------------------------------------------------------- _helipad_pos = getMarkerPos "marker_3"; _inf_startpos = getMarkerPos "marker_5"; heli01 = "B_Heli_Transport_01_F" createVehicle getMarkerPos "marker_4"; _crew_Group =createVehicleCrew heli01; _alpha03 = [_inf_startpos, side player, (configfile >> "CfgGroups" >> "West" >> "BLU_F" >> "Infantry" >> "BUS_InfSquad")] call BIS_fnc_spawnGroup; //-----_alpha03 wp------------------------------------------------ _WP = _alpha03 addwaypoint [getMarkerPos "marker_7" , 1 ]; [ _alpha03 , 1 ] setWaypointType "MOVE"; _WP = _alpha03 addwaypoint [getMarkerPos "marker_8" , 2 ]; [ _alpha03 , 2 ] setWaypointType "GETIN"; //-----heli wp---------------------------------------------------------------- _WP = _crew_Group addwaypoint [ _helipad_pos , 1 ]; [ _crew_Group , 1 ] setWaypointType "MOVE"; _WP = _crew_Group addwaypoint [ [ (_helipad_pos select 0) - 300 , ( _helipad_pos select 1 ) - 300 ] , 2 ]; [ _crew_Group , 2 ] setWaypointType "MOVE"; _WP = _crew_Group addwaypoint [ _helipad_pos , 3 ]; [ _crew_Group , 3 ] setWaypointType "MOVE"; [ _crew_Group , 3 ] setWaypointStatements ["true", "heli01 land 'GET IN';"]; //-----synchronize----------------------------------------- [ _crew_Group , 3 ] synchronizeWaypoint [ [ _alpha03 , 2 ] ]; I'm sorry for my bad English. (machine translated) Share this post Link to post Share on other sites
pierremgi 4850 Posted December 30, 2022 You must apply addWaypoint to a group. Same for other waypoint commands. 1 Share this post Link to post Share on other sites
p207gt 0 Posted December 30, 2022 Thank you for the advice. Oh, isn't "_crew_group" a group. I thought it was definitely a group because it was moving for the time being. Then it means placing it in a group Hmmm, maybe a combination of "createGroup" and "join" is fine? I am beginner of script. But thanks to you. I found the problem. i'll give it a try. Thank you. I'm sorry for my bad English. Share this post Link to post Share on other sites
pierremgi 4850 Posted December 30, 2022 27 minutes ago, p207gt said: Thank you for the advice. Oh, isn't "_crew_group" a group. I thought it was definitely a group because it was moving for the time being. Then it means placing it in a group Hmmm, maybe a combination of "createGroup" and "join" is fine? I am beginner of script. But thanks to you. I found the problem. i'll give it a try. Thank you. I'm sorry for my bad English. My bad! you're right: createVehicleCrew returns a group. So your group is OK. On the other hand, you wrote all your addWaypoint like: _grp addWaypoint [aPosition, 1] .... [aPosition,2] ... That means here: radius 1 m, radius 2m... the correct syntax is: groupName addWaypoint [center, radius, index, name] Radius set to 0 doesn't hurt (usually) but mind for the indexes. And, please, if you correct your script, it's a good habit sharing the solution with the other readers. 1 Share this post Link to post Share on other sites