Jump to content
Sign in to follow this  
pcc

Buy units without warfare factory buildings

Recommended Posts

Due to AI commander sometimes unable to rebuild destroyed buildings for unknown reason, I'm trying to bypass factory checks entirely for server and client buy units.

I managed to enable buy weapons without barracks by removing factory checks from files like Client_UpdateAvailableObjects.sqf and GUI_UpdateOptions.sqf.

However, units/vehicles doesn't work.  

Share this post


Link to post
Share on other sites

It would likely be due to the factory dependencies in the various functions involved with purchasing units.  You would have to go through a number of function scripts to remove factory dependencies and assign a different spawn point since there won't be a factory to getPos from.

 

GUI_buyUnitsMenu.sqf is the factory GUI script.  It has factory dependencies, and it's a rather complicated script.  You would first want to review it and decide whether it's a task you want to take on.  It involves handling the displays and dialogs.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×