Jump to content
  • 0

Added buildings spawn too much gear. How can I turn them down?


Crispy

Question

Hello everyone, after some time I have finally figured out how to add buildings to my epoch server. They are spawning loot and seem to be working just fine, Well almost, they spawn loot, but they spawn loot way too much I added three barracks to NEAF. All three barracks get littered with backpacks and expensive guns well over what I want them to do. How can I adjust the loot spawn on these. I have looked all over and have found no answer.

 

 

 

Here is how I brought the buildings into my server.

1) I used the 3d editor and set 3 barracks in NEAF. 

2) Saved the file and opened up the saved.sqf file with notepad++
3) I copied the info needed and changed where the Map_ to LAND_
4) Created a new sqf with this in it.

if (isServer) then {

_vehicle_25 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [12235.144, 12588.837], [], 0, "CAN_COLLIDE"];
  _vehicle_25 = _this;
  _this setDir -69.231537;
  _this setPos [12235.144, 12588.837];
};

_vehicle_31 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [12251.16, 12582.733, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_31 = _this;
  _this setDir -69.231537;
  _this setPos [12251.16, 12582.733, -1.5258789e-005];
};

_vehicle_34 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [12267.416, 12576.441], [], 0, "CAN_COLLIDE"];
  _vehicle_34 = _this;
  _this setDir -69.231537;
  _this setPos [12267.416, 12576.441];
};

_vehicle_116 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Heli_H_army", [12049.459, 12677.465, 0], [], 0, "CAN_COLLIDE"];
  _vehicle_116 = _this;
  _this setPos [12049.459, 12677.465, 0];
};

}; 

5) Then called upon it with this in my int.sqf

[] ExecVM "Custom_Buildings\neaf_addition.sqf"; 

I have been up now for 2 days now trying to get this loot spawned in these barracks lowered. If anyone knows how please let me know.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...