michaelm75au -> RE: Moving Aircraft Around on the Ground (9/21/2020 9:06:29 PM)
|
Use unit.base to set the aircraft to a different 'facility' such as below local base = ScenEdit_GetUnit( { name='Airfield', side='NATO' }) local facilities = base.group.unitlist -- list of facilities at base local x = math.random(1,#facilities ) u = ScenEdit_GetUnit({ name = facilities[x]}) unit.base = u You would filter the 'facilities' list to only include items that can host the aircraft; like a 'control tower' shouldn't be counted. Or leave them in, and skip assigning the aircraft to it - let it stay at the original location. [This is just scripted without any checking as to practicality as not running Command at the moment. I sure others can give you a more precise example.[:D]]
|
|
|
|