Kilo60 Posted January 3, 2012 Share Posted January 3, 2012 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! 0 Quote Link to comment Share on other sites More sharing options...
Tacbat Posted January 3, 2012 Share Posted January 3, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
Members Ssnake Posted January 3, 2012 Members Share Posted January 3, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.