Jump to content
  • 0

Infistar Epoch / Admin boxes dissapearing


dishner2013

Question

So everyone on the forum has been an awesome help so far and I've found countless amounts of information. I have setup infistar and everything works flawlessly. Spawning of boxes, admin tools, etc etc works awesome! However, sometimes when we place a donation box / epoch box / admin box down it will just randomly dissapear after some time (with no discernible pattern either). I was look at my AH.sqf file and the way I'm creating the boxes and thought that maybe I could stop the code from finishing some way until we know the server has restarted (at which point I want the box to dissapear regardless) allowing the box to stay there until server restart.

 

Pasting a chunk of code to show my concept, just was wondering if this was the correct way to do this or if there was a better way. 

 

 

fortbox =
{
PVAH_AdminReq = [20131,player];
publicVariableServer "PVAH_AdminReq";
 
hint format["Fortification Box"];
cutText [format["Fortification Box"], "PLAIN DOWN"];
 
_sl = format["%1 - Fortification Box @%2",name player,mapGridPosition getPosATL player];
PVAH_WriteLogReq = [player,toArray _sl];
publicVariableServer 'PVAH_WriteLogReq';
};
 
 
if (_option == 20131) then
{
_dir = getdir _playerObj;
_pos = getPosATL _playerObj;
_pos = [(_pos select 0)+2*sin(_dir),(_pos select 1)+2*cos(_dir),(_pos select 2)];
[_dir,_pos] spawn {
_dir = _this select 0;
_pos = _this select 1;
_b0x = 'USVehicleBox' createVehicle _pos;
_b0x setPosATL _pos;
clearWeaponCargoGlobal _b0x;
clearmagazinecargoGlobal _b0x;
 
_b0x addWeaponCargoGlobal ["ItemHatchet_DZE", 5];
_b0x addWeaponCargoGlobal ["ItemEtool", 5];
_b0x addWeaponCargoGlobal ["ItemToolbox", 5];
_b0x addWeaponCargoGlobal ["ItemCrowbar", 5];
_b0x addWeaponCargoGlobal ["ItemMatchbox", 5];
_b0x addWeaponCargoGlobal ["ItemSledge", 5];
_b0x addWeaponCargoGlobal ["ItemKeyKit", 5];
 
_b0x addMagazineCargoGlobal ["metal_panel_kit", 80];
_b0x addMagazineCargoGlobal ["CinderBlocks", 80];
_b0x addMagazineCargoGlobal ["metal_floor_kit", 80];
_b0x addMagazineCargoGlobal ["cinder_wall_kit", 80];
_b0x addMagazineCargoGlobal ["cinder_garage_kit", 80];
_b0x addMagazineCargoGlobal ["cinder_door_kit", 80];
_b0x addMagazineCargoGlobal ["ItemPole", 80];
_b0x addMagazineCargoGlobal ["ItemComboLock", 40];
_b0x addMagazineCargoGlobal ["MortarBucket", 40];
_b0x addMagazineCargoGlobal ["ItemGenerator", 6];
_b0x addMagazineCargoGlobal ["30m_plot_kit", 6];
_b0x addMagazineCargoGlobal ["fuel_pump_kit", 6];
_b0x addMagazineCargoGlobal ["ItemVault", 6];
_b0x addMagazineCargoGlobal ["bulk_ItemSandbag", 6];
_b0x addMagazineCargoGlobal ["bulk_ItemTankTrap", 6];
_b0x addMagazineCargoGlobal ["bulk_ItemWire", 6];
_b0x addMagazineCargoGlobal ["bulk_PartGeneric", 6];
_box addMagazineCargoGlobal ["Land_fort_rampart", 30];
_box addMagazineCargoGlobal ["Land_HBarrier5_DZ", 10];
_box addMagazineCargoGlobal ["Land_HBarrier1_DZ", 10];
_box addMagazineCargoGlobal ["SandNest_DZ", 10];
_box addMagazineCargoGlobal ["DesertCamoNet_DZ", 20];
_box addMagazineCargoGlobal ["ForestCamoNet_DZ", 20];
_box addMagazineCargoGlobal ["DesertLargeCamoNet_DZ", 20];
_box addMagazineCargoGlobal ["ForestLargeCamoNet_DZ", 20];
_box addMagazineCargoGlobal ["DeerStand_DZ", 10];
_box addMagazineCargoGlobal ["MetalGate_DZ", 10];
_box addMagazineCargoGlobal ["Fence_Corrugated", 40];
_box addMagazineCargoGlobal ["Land_MBG_Outdoortable", 4];
_box addMagazineCargoGlobal ["light_pole_kit", 10];
_box addMagazineCargoGlobal ["Land_Fire_barrel", 5];
_box addMagazineCargoGlobal ["RoadBarrier_long", 15];
 
sleep 14400;
 
};

 

 

Thank you in advance and I'm sorry if there is a thread already out here for this. I've searched for almost two days for my specific situation and just can't find it. 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Just a query actually, have you managed to spawn boxes in for player interaction and still have _CHB set to true? Also, are you able to walk inside a structure and spawn a box inside? Every time I do it, it spawns outside somewhere. If so, would you kindly PM me with how as these two things elude me even after e-mailing Chris.

 

Cheers

Link to comment
Share on other sites

  • 0

Just a query actually, have you managed to spawn boxes in for player interaction and still have _CHB set to true? Also, are you able to walk inside a structure and spawn a box inside? Every time I do it, it spawns outside somewhere. If so, would you kindly PM me with how as these two things elude me even after e-mailing Chris.

 

Cheers

Best thing todo is post on http://board.infistar.de/

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
  • Discord

×
×
  • Create New...