Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
into that exact location. What location would that be? I have no "MPMissions/*missionname*/HERE" on my server!! I have inside my root folder: @Bliss/addons, Battleye, Tmp3289 and Users/cfgdayzDefault. So could you or someone else explain to me, in plain English, where to put the MZ_reload.sqf?// by Mattz for DayZ (C)
private ["_config","_count","_i","_magazines","_object","_type","_type_name"];
_object = _this select 0;
_type = typeof _object;
if (_object isKindOf "ParachuteBase") exitWith {};
if (!alive _object) exitWith {};
_object engineOn false;
sleep 3;
if (!alive _object) exitWith {};
_object vehicleChat "Refueling... If you are in a heli, you have 9 seconds to shut off the engine";
_object engineOn false;
sleep 10;
if (!alive _object) exitWith {};
_OnOff = isEngineOn _object; //Determine if engine is on or off and set it to _OnOff
if (_OnOff) then
{exit;}
else {
_object vehicleChat format ["Filling %1... Please wait...", _type];
};
_OnOff = isEngineOn _object; //Determine if engine is on or off
if (_OnOff) then
{
exit;
}
else {
_OnOff = isEngineOn _object; //Determine if engine is on or off;
while {fuel _object < 0.99} do {
_OnOff = isEngineOn _object; //Determine if engine is on or off
if (_OnOff) then
{exitwith {};}
else {
_object setFuel fuel _object + 0.1;
sleep 6;
};
};
if (!alive _object) exitWith {};
_type_name = typeOf _object;
_object vehicleChat format ["%1 is ready...", _type_name];
};
if (true) exitWith {};
Ooooo! What's this zombie alert trigger you've added? I need to get that into my NPC script somehow (gunshots aren't alerting zeds).How about adding in the zombie alert I mentioned a few posts back, have been playing with it and it does work, this is what happens when you 'alert' all of the zombies for 750 metres in Cherno. I am the zombie master
![]()
How about adding in the zombie alert I mentioned a few posts back, have been playing with it and it does work, this is what happens when you 'alert' all of the zombies for 750 metres in Cherno. I am the zombie master![]()
_aiunit addEventHandler ["Fired", {[_this Select 0,1000,true,(getPosATL (_this Select 0))] spawn player_alertZombies;}];
_aiunit addEventHandler ["Fired", {diag_log format ["Army Alert: Unit is shooting shit - %1,_this];}];
_aiunit addEventHandler ["Fired", {[(_this Select 0),1000,true,(getPosATL (_this Select 0))] execvm "units\NPC_AlertZombies.sqf";}];
//NPC_AlertZombies.sqf
private["_unit","_distance","_i","_listTalk","_zombie","_targets","_pos"];
//Alert Zed's to noise of shot
_unit =_this select 0;
_distance = _this select 1;
_doRun =_this select 2;
_pos =_this select 3;
_listTalk = _pos nearEntities ["zZombie_Base",_distance * 2];
// post to the RPT file if an npc alerts a zed
diag_log format ["NPC_AlertZombies: %1, %2, %3, %4",_unit,_distance,_dorun,_pos];
//hint str(_listTalk);
{
_zombie = _x;
if (_doRun) then {
_targets = _zombie getVariable ["targets",[]];
if (!(_unit in _targets)) then {
_targets set [count _targets,_unit];
_zombie setVariable ["targets",_targets,true];
};
} else {
_zombie setVariable ["myDest",_pos,true];
};
} forEach _listTalk;
It works on mine with the update - BUT, updating dayz will overwrite your init.sqf - so make sure you re-edit it.This post is just to long i lost the overview. I just try it but it wont work on my server. Can someone say EXACTLY where the files/directions have to go?
BTW Good Work Dude
It works on mine with the update - BUT, updating dayz will overwrite your init.sqf - so make sure you re-edit it.
Thx dude but i am pretty new with dayz so which mission.pbo file you mean?. /@bliss_1.chernarus/addons/dayz_server.pbo |or| /mpmissions/dayz_private_1.chernarus.pboThe file that u create when you extract your mission pbo is where u make a new folder called Scripts. Put the files kh_actions.sqf andkh_vehicle_refuel.sqf in that folder(Scripts). And if u dont have it already, get notepad ++ before doing anything.
Thx dude but i am pretty new with dayz so which mission.pbo file you mean?. /@bliss_1.chernarus/addons/dayz_server.pbo |or| /mpmissions/dayz_private_1.chernarus.pbo
if (!isDedicated) then {
< bunch of default code >
[] execVM "Scripts\kh_actions.sqf"; // This line is to enable the mouse wheel refuel
};