Ammo Crates Fix

"//Check for Ammobox" \n
"// {" \n
"//if(!(_x isKindOf ""WeaponHolder"")) then {" \n
"//diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
"//deleteVehicle _x;" \n
"//};" \n
"//} forEach allMissionObjects ""ReammoBox"";" \n
"//*/" \n
""// \n, look for this in your server, or if you need help add me on skype,bazzabing11.
 
thats your problem then mate best do a bedie file too add into your server mate do a 3d edtitor for the ammo crate's

then you wont have this problem, they refill every restart, that is what i would say to do mate, should solve your problem.
 
Ok, what I ended up doing is setting my own variable on it like this....
Code:
_ammoBox setVariable ["KrixKeep",true,true];
And then find this line in your server pbo inside server_cleanup.fsm....
Code:
"{" \n
"    _keep = _x getVariable [""permaLoot"",false];" \n
"    _nearby = {isPlayer _x} count (_x nearEntities [[""CAManBase""], 250]);" \n
"" \n
and change it too.....
Code:
"{" \n
"    _keep = _x getVariable [""permaLoot"",false];" \n
"    _krixKeep = _x getVariable [""KrixKeep"",false];" \n
"    _nearby = {isPlayer _x} count (_x nearEntities [[""CAManBase""], 250]);" \n
"" \n
find this line....
Code:
"    if ( (!_keep) && (_nearby==0) && (_age > 60) ) then {" \n
change it too....
Code:
"    if ( (!_keep) && (_nearby==0) && (_age > 60) && (!_krixKeep) ) then {" \n
This should work just fine for any ammo box. Enjoy! :)

Hey there guys ive used this to spawn boxes successfully im having a problem with the loot inside when i remove an item from the box it respawns right back in the box a few seconds l8r meaning players can dupe all night long and have truck loads of gear if any1 knows what im doing wrong can you let me know plz as im stumped thanx
 
thats your problem then mate best do a bedie file too add into your server mate do a 3d edtitor for the ammo crate's

then you wont have this problem, they refill every restart, that is what i would say to do mate, should solve your problem.
what BE filters do i need to add in ?

do i just add this?
5 "box" !="USBasicWeapons_EP1" !="MedBox0" !="AmmoBoxSmall_556" !="AmmoBoxSmall_762" !="ItemMatchbox" !="ItemToolbox" !="CardBoardBox" !="FoodBox1" !="FoodBox2" !="FoodBox3"

to add USBasicWeapons_EP1
 
ok so i add USBasicAmmunitionBox_EP1 and USBasicWeapons_EP1 to BE
added them via 3D editor

the USBasicAmmunitionBox_EP1 looks like it is staying (have not tested to see if it will refill on restart)
EDIT: Nope it is disappearing also

the USBasicWeapons_EP1 is disappearing after about 5 min or so

any way to keep the weapon crate from disappearing?

thanks mate
 
thats your problem then mate best do a bedie file too add into your server mate do a 3d edtitor for the ammo crate's

then you wont have this problem, they refill every restart, that is what i would say to do mate, should solve your problem.

sorry but they are still disappearing even after adding the BE code to

createvehicle.txt
 
Back
Top