bajaboy1972
Well-Known Member
File : dichina.rar
http://69.30.227.58/dichina.rar
Base has secured entrance gate controlled by UID based infostands. There is also separate sections within main base that can be accessed via infostand.
For the Infostands to work you will need to add the following code (below) to your FN_SelfActions
You will also need to add the below coder under the following line in your init.sqf
"if (!isDedicated) then {"
So it should look something like this...
You then will need to add the included folder into your mpmission folder on your server.
File : Infostand.rar
http://69.30.227.58/infostand.rar
You will also need to add a line in your init.sqf that adds an admin list so that only certain people will have access to be able to open the gates.This code gets added under the following line.
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
Looks like this :
UID's can also be added to each separate gate within base by changing the following in the base.sqf file.
http://69.30.227.58/dichina.rar
Base has secured entrance gate controlled by UID based infostands. There is also separate sections within main base that can be accessed via infostand.
For the Infostands to work you will need to add the following code (below) to your FN_SelfActions
Code:
// Infostand object removal
if(cursorTarget isKindOf "Infostand_1_EP1" and _canDo) then {
if (s_player_infoStand < 0) then {
s_player_infoStand = player addAction ["Activate Infostand", "infostand\infostand.sqf",cursorTarget, 1, true, true, "", ""];
};
} else {
player removeAction s_player_infoStand;
s_player_infoStand = -1;
};
You will also need to add the below coder under the following line in your init.sqf
"if (!isDedicated) then {"
Code:
//Gates
[] execVM "infostand\kh_door.sqf";
So it should look something like this...
Code:
if (!isDedicated) then {
[] execVM "compile\Server_WelcomeCredits.sqf";
//Conduct map operations
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
//Gates
[] execVM "infostand\kh_door.sqf";
You then will need to add the included folder into your mpmission folder on your server.
File : Infostand.rar
http://69.30.227.58/infostand.rar
You will also need to add a line in your init.sqf that adds an admin list so that only certain people will have access to be able to open the gates.This code gets added under the following line.
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
Looks like this :
Code:
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
adminList = ["123456789"];
UID's can also be added to each separate gate within base by changing the following in the base.sqf file.
Code:
//Entrance
_vehicle_427 = objNull;
if (true) then
{
_this = createVehicle ["Concrete_Wall_EP1", [3931.7629, 8048.0396], [], 0, "CAN_COLLIDE"];
_vehicle_427 = _this;
_this setDir -71.581108;
_this setPos [3931.7629, 8048.0396];
};
_vehicle_428 = objNull;
if (true) then
{
_this = createVehicle ["Concrete_Wall_EP1", [3932.5757, 8050.4653, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_428 = _this;
_this setDir -72.070648;
_this setPos [3932.5757, 8050.4653, 3.0517578e-005];
};
_vehicle_429 = objNull;
if (true) then
{
_this = createVehicle ["Concrete_Wall_EP1", [3943.0442, 8047.1294, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_429 = _this;
_this setDir -75.215157;
_this setPos [3943.0442, 8047.1294, -3.0517578e-005];
};
_vehicle_430 = objNull;
if (true) then
{
_this = createVehicle ["Concrete_Wall_EP1", [3942.3958, 8044.8779], [], 0, "CAN_COLLIDE"];
_vehicle_430 = _this;
_this setDir -71.855751;
_this setPos [3942.3958, 8044.8779];
};
_vehicle_431 = objNull;
if (true) then
{
_this = createVehicle ["Infostand_1_EP1", [3944.9207, 8049.2227, 0], [], 0, "CAN_COLLIDE"];
_vehicle_431 = _this;
_this setPos [3944.9207, 8049.2227, 0];
_this setVariable ["TargetBuilding",[_vehicle_427,_vehicle_428,_vehicle_429,_vehicle_430],true];
_this setVariable ["AllowRemoval",1,true];
_this setVariable ["AllowedList", ["123456789"true];
};
_vehicle_432 = objNull;
if (true) then
{
_this = createVehicle ["Infostand_1_EP1", [3930.2793, 8046.7778, 0], [], 0, "CAN_COLLIDE"];
_vehicle_432 = _this;
_this setPos [3930.2793, 8046.7778, 0];
_this setVariable ["TargetBuilding",[_vehicle_427,_vehicle_428,_vehicle_429,_vehicle_430],true];
_this setVariable ["AllowRemoval",1,true];
_this setVariable ["AllowedList", ["123456789"], true];
};
//MrGrimm
//Entrance End
Last edited: