Advertisement
Guest User

Untitled

a guest
Oct 25th, 2018
4,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. *******************HOW TO GENERATE NEW LOOT POSITIONS ON THE MAP FOR YOUR CUSTOM BUILDINGS********************************
  2. -DaOne
  3. First things first, MAKE SURE your custom added buildings SPAWN BEFORE THIS SCRIPT gets execute!! OR ELSE it will not pick up the new buildings!!!
  4.  
  5. Add the following code to any void() That runs after your buildings have spawned!
  6. I recommend to run this code within your mission's BASE CLASS eg CustomMission: MissionServer ( Make a void and name it OnInit )
  7. LIKE THIS:: override void OnInit() { /* Code */ }
  8. INSIDE IT ADD:
  9.  
  10. CETesting TestHive = GetTesting();
  11. TestHive.ExportProxyProto();
  12. TestHive.ExportProxyData( "7500 0 7500", 7000 ); //Dont fuck around with these numbers
  13.  
  14. NOW RUN THE SERVER AND WAIT APPROX 30-60 SECONDS AFTER IT READS THE MISSION!
  15. ONCE YOU SEE THIS IN THE CONSOLE: [CE][MapExport] :: entity found:13722, entity valid:8983, types total:224... took 33 sec
  16. GO TO YOUR STORAGE FOLDER IN THE MISSION, OPEN IT AND YOU SHOULD SEE A NEW FOLDER NAMED 'export' INSIDE IT WILL CONTAIN 2 XML's COPY BOTH AND REPLACE THE OLD ONES WITH THE NEW ONES, MAKE SURE YOU REMOVE THE CODE SO IT DOES NOT GENERATE AGAIN AND RESTART SERVER.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement