random strike distance value
Posted: Thu Jun 20, 2019 3:34 pm
I want to use LUA to randomize the maximum distance for an aircraft strike. The reason is to create variability for the player by making the AI strike distance different each time they play the scenario so it will be more interesting if played more than once.
I believe I can use ScenEdit_SetMission() and strikeMaxDistAircraft(NUMBER) to change the distance.
How could I make the NUMBER for the strike distance be a random number between 900 and 1100?
Thanks
I believe I can use ScenEdit_SetMission() and strikeMaxDistAircraft(NUMBER) to change the distance.
How could I make the NUMBER for the strike distance be a random number between 900 and 1100?
Thanks