SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
03-23-21, 09:44 PM | #1 |
Chief
Join Date: Mar 2010
Location: São Paulo, Brazil
Posts: 321
Downloads: 462
Uploads: 0
|
Target intercept, TDC Training Mission.
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. |
03-24-21, 12:22 AM | #2 | |
Silent Hunter
|
Quote:
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. Fortis et stabilis et fidelis, semper ------------------------------------------------------------ Silent Hunter 4 1.5 Gold Edition on CDROM LAA enabled Dell XPS with 32 GB Ram running Win10 |
|
03-24-21, 12:33 AM | #3 |
Chief
Join Date: Mar 2010
Location: São Paulo, Brazil
Posts: 321
Downloads: 462
Uploads: 0
|
tks Marco,
Good idea on the "group" subject. Haven't thought about it. |
03-24-21, 12:36 PM | #4 |
CTD - it's not just a job
|
An RGG though, always has a "boss" ship that all others follow, so it will always spawn at 100%. In the RGG though, you can have it listed as GENERIC Merchant, or GENERIC Tanker or whatever class. As for where it spawns, where you place the RGG is the "center" point, but you can use the "RandStartRadius=" line (which defaults to "0.000000") to have it spawn anywhere inside of the radius of that figure. However, the group will always head toward waypoint 1. You can set "loop" points though, for the ship to choose a variety of different possible routes after Waypoint 1 is reached, which might be a bit easier to have variety. The player always starts in one single defined spot inside a Single Mission, and the RGG always spawns with a given radius of a defined location, but after that, with the use of "Loop" at the different waypoints, you can have all kinds of "chance" fun. The player's boat has to be at least 30+km away from where the group spawns, so that should give you plenty of chance encounter to deal with...
|
|
|