View Single Post
Old 03-24-2021, 12:22 AM   #2
Ocean Warrior
KaleunMarco's Avatar
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 2,735
Downloads: 379
Uploads: 17


Originally Posted by Pilot_76 View Post
Hi skippers,

This has been posted a while ago by me, and I'd like to give it a shot again.

I want to design a TDC training mission and once the mission starts a random ship will show up in a random position and within X distance from Ownship (our Sub) following a random waypoint.

How to design in such a way that the mission will choose a single ship from a list? My guess is that if I assign a percentage chance from a lot of units the game will spawn many units each one with its own percentage. So I will end up with many ships at once. I want just one from a list.
i believe you will have to build a GROUP (RGG) and use the parameter that will limit the Maximum number of ships spawned.

so you create a Group, add various ships with spawn percentages, then set the Max parameter to one.

i am not sure what would happen if the percentages worked against you and zero ships were spawned.

anyway, that's how i would do what you are trying to do.

good luck.

there are only two things in the world: submarines and targets.
Fortiter et stabilis et fidelis, semper

Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote