KnightHawk75
Posts: 1450
Joined: 11/15/2018 Status: offline
|
This can be done with some minor caveats Here is how you accomplish it. I have 3 sides, wc,ec,neutral; wc\ec are hostile to one another neutral is neutral to both (green) (now you can add the units via lua too but I'll give the editor way). 1. Flip to the neutral side in the editor and add the specific units to the airport you want for you insurgents as non-allied aircraft for now. In my case I chose the side wc as the insurgents. Now for this example rename the aircraft (or one if you added multiple) to 'bagman #1'. Don't give it a loadout yet. 2.Now open the lua console and paste this in. local u = ScenEdit_GetUnit({side="neutral",name='bagman #1'}); ScenEdit_SetUnitSide({side="neutral",guid=u.guid,newside="WC"}) 3.Hit run. 4.Now switch sides to your insurgents (again in my case side WC) 5.Flip on god mod (ctrl-v) and select the airport (you might have to re-selected it if was already selected to 'refresh' it for the new side view) Open the airops screen for it, it will now let you assign a loadout for the aircraft you own, but not ones you don't. Go ahead and assign a loadout for bagman #1 as a test and close the airops screen. 6.Turn off god mode. You should be able to now assign him to a mission or whatever that you activate when\if the time is right on insurgent side. The unit will by default keep airbase as it's home base and successfully return\land. The caveat really is if you try this in reverse, ie have the player have stuff at a neutral base, the human will not have access to god mode when outside the editor to the airops screen - but you could give them some special actions to kick off a launch via lua or tell them about it and to use a mission to launch them if they're ready to go. Once airborne they would have full-control and could re-base said aircraft. There is also something I also noticed with mags. When they land they seem to add munitions to the neutral sides mags from whatever was on their own plane, and re-taking off they don't seem to take from the mag even though they do restock their loadout. IE if give the neutral base 8 sbd's and land a wc f-22 with that loadout who launched an fired 1, and he lands with 7 at the neutral airfield the neutral mags will go from 8 to 15, when it's ready again it will launch with 8 and the mag stays at 15.
< Message edited by KnightHawk75 -- 6/30/2020 3:19:14 AM >
|