ghostphantom172
Member
Credits-
krix for inital code
ghostphantom172 for work in progress
HELP IS APPRECIATED
first inside server_cleanup.fsm....
and change it too.....
find this line....
change it too....
THE (ammobox.sqf) still not sure if it is working yet currently set to 3 boxes total
as i said before i need a bit of help i want it to spawn the boxes but the model and content to be random!
krix for inital code
ghostphantom172 for work in progress
HELP IS APPRECIATED
first inside server_cleanup.fsm....
Code:
"{" \n
" _keep = _x getVariable [""permaLoot"",false];" \n
" _nearby = {isPlayer _x} count (_x nearEntities [[""CAManBase""], 250]);" \n
"" \n
Code:
"{" \n
" _keep = _x getVariable [""permaLoot"",false];" \n
" _krixKeep = _x getVariable [""KrixKeep"",false];" \n
" _nearby = {isPlayer _x} count (_x nearEntities [[""CAManBase""], 250]);" \n
"" \n
Code:
" if ( (!_keep) && (_nearby==0) && (_age > 60) ) then {" \n
Code:
" if ( (!_keep) && (_nearby==0) && (_age > 60) && (!_krixKeep) ) then {" \n
THE (ammobox.sqf) still not sure if it is working yet currently set to 3 boxes total
Code:
//Ammo box spawn script by ghostphantom172
//Currently working on 1.7.7.1
//---------------------The CODE---------------------
//Box Models
_ammoBoxModel = ["GuerillaCacheBox","USBasicAmmunitionBox"] call BIS_fnc_selectRandom;
//-------Box 1 Information--------
//Box attributes
//box attributes
_boxPos1 = [8108,9149,0]; //Change postion of ammo box one
//Ammo Box spawning
//Spawning the box
_ammoBox = createVehicle [_ammoBoxModel, _boxPos1, [], 0, "CAN_COLLIDE"];
_ammoBox setDir 0.0;
_ammoBox setPos _boxPos1;
//-------Box 2 information--------
//Box attributes
//box attributes
_boxPos2 = [5380,5581,0]; //Change postion of ammo box two
//Ammo box spawning
//Spawning the box
_ammoBox = createVehicle [_ammoBoxModel, _boxPos2, [], 0, "CAN_COLLIDE"];
_ammoBox setDir 0.0;
_ammoBox setPos _boxPos2;
//-------Box 3 information--------
//Box attributes
//box attributes
_boxPos3 = [8112,9149,0]; //Change postion of ammo box three
//Ammo box spawning
//Spawning the box
_ammoBox = createVehicle [_ammoBoxModel, _boxPos3, [], 0, "CAN_COLLIDE"];
_ammoBox setDir 0.0;
_ammoBox setPos _boxPos3;
//----------Box Contents---------
//Box contents
//Box contents
if (_ammoBoxModel == "GuerillaCacheBox") then
{
//clear items
clearMagazineCargoGlobal _ammoBox;
clearWeaponCargoGlobal _ammoBox;
//add items
_ammoBox addWeaponCargoGlobal ["M16A2", 1]; // for the weapons
_ammoBox addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 2]; // for the ammo
_ammoBox addMagazineCargoGlobal ["ItemAntibiotic", 2]; // for the items;}
else
{
//clear items
clearMagazineCargoGlobal _ammoBox;
clearWeaponCargoGlobal _ammoBox;
//add items
_ammoBox addWeaponCargoGlobal ["M16A2", 2]; // for the weapons
_ammoBox addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 6]; // for the ammo
_ammoBox addMagazineCargoGlobal ["ItemAntibiotic", 2]; // for the items;};
//-------Set Variables------------
//set variables
_ammoBox setVariable ["KrixKeep",true,true];
as i said before i need a bit of help i want it to spawn the boxes but the model and content to be random!