Jump to content

How to set up random targets for a tank range?


oscar

Recommended Posts

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
Link to comment
Share on other sites

  • Members

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.

Link to comment
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..

Link to comment
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.

×
×
  • Create New...