Jump to content
  • 0

Need help with Plot Pole


JackalopeHunter

Question

Hello all

 

So I am trying to increase the plot pole build radius. I don't want to remove the plot pole because then the bases are there for good and others can build on your base. What we want to do is increase the range so that players can build 300 items in a 50m range. I know that the plot pole already maintains out past the 30 but its a pain to move the plot pole when building say a heli coral or building inside one of the castles. 

 

We are running build snapping and I know there is an area in the file that shows this.

 

// disallow building if too many objects are found within 30m

if((count ((position player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {TradeInprogress = false; cutText ["\n\nCannot build, too many objects witin 30m.", "PLAIN DOWN];};
 

And I know that the "All",30 should increase the area but, will it show a larger marker area when building? With 1.0.4.2 there are stakes that show when a new plot pole is put down and they are at 30m. Will changing this change that as well? 

 

Thanks for the help guys. 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

OK

 

So I tested that and it does not increase build range or change the markers. 

 

Does anyone know how to increase the build range on plot poles? 

 

I did find the object_showPlotRadius.sqf in the compile folder. This looks like it controls the markers. 

//Build preview adopted from Axe Cop (@vos) Base Destruction Script

private ["_location","_object","_objects","_i","_dir","_nearPlotPole"];

// global vars
_nearPlotPole = nearestObject [player, "Plastic_Pole_EP1_DZ"];

//"privatized" center variable
_BD_radius = DZE_PlotPole select 0;
_BD_center = getPos _nearPlotPole;

 _objects = [];

// circle
for "_i" from 0 to 360 step (270 / _BD_radius) do {
	_location = [(_BD_center select 0) + ((cos _i) * _BD_radius), (_BD_center select 1) + ((sin _i) * _BD_radius), _BD_center select 2];
	_object = "Plastic_Pole_EP1" createVehicleLocal _location;
	_object setpos _location;
};
Link to comment
Share on other sites

  • 0

Try adding this to your missions init.sqf:

 

DZE_PlotPole = [100,150];

 

 

This will give you a plot pole radius of 100 meters , and the restriction of not able to place a new plot pole within 150 meters from an existing one.

 

If you dont define one in the init.sqf, you will by default have:

 

DZE_PlotPole = [30,45];

Link to comment
Share on other sites

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...