Jump to content

Assigning RANDOM Variable to Unit spawing


Kilo60

Recommended Posts

When assigning a RANDOM Variable to having a Unit spawn what is the "New" < command line mean in the "SPAWN IF" selection?

Could someone please explain how to properly assign a percent variable to having a Unit spawn in the Mission Editor?

Thanks!

Link to comment
Share on other sites

The "X" variables are chosen at the start of the mission, and remain the same for the duration. So, at mission start, X1 might be 5. So any events/triggers/conditions using X1, would have the the value of 5.

A "New" variable means that a new number is chosen each time your scripted action occurs. Usually a "new" variable is assigned to a waypoint to give it some randomness when multiple routes originate from it. So, if unit 1 hits that waypoint, a "New" number is generated. A "New" number would be generated if unit 2 hits the same waypoint, etc.

Link to comment
Share on other sites

  • Members

I'm not quite sure how this will work with Spawn conditions. If you want to spawn a GROUP of vehicles in a coordinated fashion, I recommend to use one of the X1...X63 variables with an identical quartile, e.g. 0...40%. That way, if the referenced variable is between 0.00 and 0.39 the entire group will spawn.

XNew on the other hand gets re-rolled whenever needed and therefore doesn't allow coordination (therefore you only need one variable of that kind). Now, maybe we made an initialization error and XNew gets only rolled once before the start of the planning phase - so that if all the units reference XNew they actually have the same value and therefore still spawn in a coordinated fashion.

If that is the case, we do not guarantee that it will still work that way in future versions of SB Pro.

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...