Jump to content

How do you use Control Logic


Recommended Posts

Hello I'm looking for some advice on using control logic in a scenario, specifically i want to set the scenario to spawn opfor units randomly.

 

Any advice would be greatly appreciated, Thank You.

Edited by SomeMonsterGuy
Link to post
Share on other sites

Put the units you want to spawn on map, click with secondary button-> spawn if and pick the option with random variable.You need to put intervals of numbers from 0 to 100 for each unit, the more numbers you put in the interval the more likely is  that unit to spawn. Make sure you cover all the numbers(there is no gap between the intervals) or is possible that nothings happens if the random variable takes that number value.

Link to post
Share on other sites

Create routes from the spawning unit and apply a "jump to end, if..." condition with randomization if you want the units to appear in different places (IF they appear). Careful, though. the more layers of randomization you add, the bigger tha chance that you will miss a branch later in the design process. You should have a clear idea first, then create the randomization for one prototype unit, and finally copy the initial routes to all other units so that they all jump to a similar location on spawn, rather than being a complete chaos. This is why you need numbered random variables that stay the same for the duration of the scenario, so you have coordinated random behavior.

 

We'll post a youtube tutorial to cover this topic in the coming weeks.

Link to post
Share on other sites
6 minutes ago, Ssnake said:

Create routes from the spawning unit and apply a "jump to end, if..." condition with randomization if you want the units to appear in different places (IF they appear). Careful, though. the more layers of randomization you add, the bigger tha chance that you will miss a branch later in the design process. You should have a clear idea first, then create the randomization for one prototype unit, and finally copy the initial routes to all other units so that they all jump to a similar location on spawn, rather than being a complete chaos. This is why you need numbered random variables that stay the same for the duration of the scenario, so you have coordinated random behavior.

 

We'll post a youtube tutorial to cover this topic in the coming weeks.

Nils, please look at bug 7598

Link to post
Share on other sites
Posted (edited)

Thank all of you for your advice, I'm going to try spawning a few t-72's in my scenario after this. I do have one more question here, when we refer to a prototype I'm not sure if we're talking about the category of unit known as prototypes or if we are talking about just using any old unit as a prototype of sorts in regards to creating the randomization?

 

And again thank you all for your input.

11 hours ago, Ssnake said:

Create routes from the spawning unit and apply a "jump to end, if..." condition with randomization if you want the units to appear in different places (IF they appear). Careful, though. the more layers of randomization you add, the bigger tha chance that you will miss a branch later in the design process. You should have a clear idea first, then create the randomization for one prototype unit, and finally copy the initial routes to all other units so that they all jump to a similar location on spawn, rather than being a complete chaos. This is why you need numbered random variables that stay the same for the duration of the scenario, so you have coordinated random behavior.

 

We'll post a youtube tutorial to cover this topic in the coming weeks.

 

Edited by SomeMonsterGuy
changed a period to a question mark.
Link to post
Share on other sites

Yes, that was the intent behind it. You first script the jump/embark conditions, then copy the route chain and paste it to other units. That way they maintain their spatial displacement and follow the same logic, a.k.a. coordinated random behavior, which is what you're probably after.

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.

×
×
  • Create New...