Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Make an object start in a random location?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mission Designers' Forum
View previous topic :: View next topic  
Author Message
hachiman



Joined: 25 Dec 2001
Posts: 722
Location: Edinburgh Jockland

PostPosted: Sun Apr 30, 2006 2:04 pm    Post subject: Make an object start in a random location? Reply with quote

HI

How do i make an object start in hopefully a different location everytime .
I've tried random and dynamic locations and don't seem to get it right.
The sub starts in the same place every time.

Thanx
Back to top
View user's profile Send private message
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Sun Apr 30, 2006 3:55 pm    Post subject: Reply with quote

create your platforms, then put all dynamic locations where you want.
then, clic on any dynamic location =>
object assigned : include all your platforms on this list
min / max should be the same number of the platform you assigned to this dynamic location pattern.

If you want only 3 out of 5 platforms to appear in these locations (typical neutral generation example) DON'T put the min/max to 3
You must define the platform generated BEFORE they will jump into dynamic locations (with dynamic group for example)

You must have in min/max of dynamic location the number of the whole platforms that could be able to spawn here =>

example :
you put 10 dynamic locations (preferably each one with a specific name instead of "location 1,2,3,4,5,.....,10", because you could have different pattern of dynamic location and it's easier to have a good name for them, example :"spawn KILO 1,2,3,4,5...10"

create 5 platforms

you want only 3 platforms out of the 5 to spawn in these DL =>
In the dynamic location screen :
object assigned : all five platform should be put here
generation option : min/max at 5

then create a dynamic group : neutrals
put all your platforms in this group
probability 100, min/max 3 (out of 5)
and now, go to each one of these platforms and give them the same probability of apparition => 100 / number of the platform for each
=> 100/5 => 20% on each
If you let all the platforms to 100%, as this is a list starting from the top, you will always have the first 3 platform selected and not the last 2.
So you really MUST divide 100% by the number of the platforms.
The global addition of all %age should be 100%
for 10 platform, each one at 10%
If you want some platforms to have more prob than other, give one 15% and the other 5%, but the final count must make 100% or be quite close to this.

now, you have a random choice of platforms that will spawn on a random dynamic locations.

you can download a mission to deconstruct =>
http://okof4.free.fr/missions/DW/MP4_BREST_Blocus_v1.34.mu
(an easy and soft scenario to analyse)
and other missions, sometimes much more complicated, but with usefull tips =>
http://okof4.free.fr/missions/DW
Back to top
View user's profile Send private message Visit poster's website
hachiman



Joined: 25 Dec 2001
Posts: 722
Location: Edinburgh Jockland

PostPosted: Tue May 02, 2006 2:43 pm    Post subject: Reply with quote

Thanx Oko

I'll check it out. Razz
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mission Designers' Forum All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group