FallingSheep
OpenDayZ Lord!
Hi,
can someone help me?
I want to deactivate the Box , that comes with Heroperks over 30 000 Humanity. The Box spawned and i was wounded. Is there a way to deactivate the Box or make it spawn further away from my characater?
Thanks for replies.
Greetings
to make the box not spawn
open
\MPMissions\DayZ_Epoch_11.Chernarus\scripts\HeroPerks
and change
Code:
if (_isPerfectHero) then {
_object = 'CSJ_GyroC' createVehicle (position player);
_object setVariable ["Malsar",1,true];
_uniqueid = str(round(random 999999));
_object setVariable ["ObjectID", _uniqueid, true];
_object setVariable ["ObjectUID", _uniqueid, true];
clearMagazineCargo _object;
clearWeaponCargo _object;
_pos = getPosATL player;
_box = 'Foodbox0' createVehicle _pos;
_box setPosATL _pos;
_box setVariable ["permaLoot",true];
_box setVariable ["Malsar",1,true];
clearWeaponCargoGlobal _box;
clearmagazinecargoGlobal _box;
{_box addWeaponCargoGlobal [_x, 1];} forEach _crateweps;
{_box addMagazineCargoGlobal [_x, 3];} forEach _cratemags;
_box addBackpackCargo [_cratebp, 1];
titleText ["Thanks for being a nice guy! Car will not save after restart! Box will be deleted in 4 minutes!", "PLAIN DOWN", 3];
sleep 240;
deleteVehicle _box;
};
to this
Code:
if (_isPerfectHero) then {
_object = 'CSJ_GyroC' createVehicle (position player);
_object setVariable ["Malsar",1,true];
_uniqueid = str(round(random 999999));
_object setVariable ["ObjectID", _uniqueid, true];
_object setVariable ["ObjectUID", _uniqueid, true];
clearMagazineCargo _object;
clearWeaponCargo _object;
titleText ["Thanks for being a nice guy! Car will not save after restart!", "PLAIN DOWN", 3];
};
this will remove the box complety
to change were the spawns you will need to change this line
Code:
_pos = getPosATL player;
you will have to mess around with adding to the _pos to make the box spawn further from the player, how ever the further from the player it spawns the more chance it has of spawning inside a building/object as there is no collision check for it