Yes, but i found other way :
I use this function :
http://hw2bsg.org/wiki.hw2.info/FunctionPlayer_NumberOfAwakeShips.html
Return all ship is NOT dock or in hyperspace. I know the number of ship in the level, and i know the number of docking bay (the number of squadron can be docked).
I made rule with this function,
g_numbership = 0
function Check_valueship()
g_numbership = Player_NumberOfAwakeShip(0)
-- number max is 147 and i need 15×5 ship dock (75)
if ( g_numbership == 147 - 75) then
print("player dock ship")
Rule_Remove("Check_valueship")
Event_Start("Prepare_Hyperspace")
end
end
In my mind, it’s work … i test it when i can (not now, i go bed ^^) .
Note : The player don’t have this ship by .level, so i can’t made one sobgroup for one squadron … Yeah, it’s not easy if we use startingplayerfleet.lua
(or persist file in this case.). [ I need to post a new ‘post’ in Story of persist for this part… ^^]
If this function and @Dom2 function works, probably add this to tips in the wiki 