Jump to content
Sign in to follow this  
oscar

How to set up random targets for a tank range?

Recommended Posts

How can I set up have random targets at different areas for a new tank range scenario I’m working on?

Share this post


Link to post
Share on other sites
1 hour ago, oscar said:

How can I set up have random targets at different areas for a new tank range scenario I’m working on?

 

Place the unit that is going to be the target, then use "spawn if ..." with a random variable to make it appear.

 

You can also add depth the the range by doing something like:

 

1. Draw a region around a given firing point (call it say "FP1")

 

2. Have the tgt spawn if ...

  • FP1 has >0 blue vehicles, and
  • Random Variable = something.

 

Friendly vehicle drives into the scrape at FP1 - satisfying the first condition.

 

One of the tgts appear, relative to FP1. Ideally you have say five tgts.

 

Tgt 1 appears if say X1 is in a range 0 to 20

Tgt 2 appears if say X1 is in a range 21 to 40

Tgt 3 appears if say X1 is in a range 41 to 60

Tgt 4 appears if say X1 is in a range 61 to 80

Tgt 5 appears if say X1 is in a range 81 to 100

 

That way there is a 20% chance that one of the tgts will appear.

 

I'll build a sample file and upload it tonight when I get home.

 

Edited by Gibsonm

Share this post


Link to post
Share on other sites

You can also make the same target appear in random locations by using a route with "jump to end, if..." condition tied to an independent random variable Xn (e.g. route 1 with  0<Xn<20, route 2: 20<Xn<40, route 3: 40<xn<100). That way you can have a deterministic (or random) appearance of units, but in different places.

Share this post


Link to post
Share on other sites

Yes, well I was only trying to offer a simple example of "a" way of doing it, not a definitive option with time based exposures, unit types varying, etc.

 

I mean I don't want to do all the work for him. ;)

Share this post


Link to post
Share on other sites

Ok guys many thanks! I,ve got another question though, can someone please explain how to make a simple scoring formula for a tank range scenerio? The Vanilla tankrange scoring seem interesting. 

Share this post


Link to post
Share on other sites
On 12/11/2019 at 2:56 AM, Gibsonm said:

 

Place the unit that is going to be the target, then use "spawn if ..." with a random variable to make it appear.

 

You can also add depth the the range by doing something like:

 

1. Draw a region around a given firing point (call it say "FP1")

 

2. Have the tgt spawn if ...

  • FP1 has >0 blue vehicles, and
  • Random Variable = something.

 

Friendly vehicle drives into the scrape at FP1 - satisfying the first condition.

 

One of the tgts appear, relative to FP1. Ideally you have say five tgts.

 

Tgt 1 appears if say X1 is in a range 0 to 20

Tgt 2 appears if say X1 is in a range 21 to 40

Tgt 3 appears if say X1 is in a range 41 to 60

Tgt 4 appears if say X1 is in a range 61 to 80

Tgt 5 appears if say X1 is in a range 81 to 100

 

That way there is a 20% chance that one of the tgts will appear.

 

I'll build a sample file and upload it tonight when I get home.

 

Yeah that would be great..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...