Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
takovo

Arma 2 Epoch 1.0.7.1 Редактор миссий добавление объектов

Будете любезны не могли бы мне подсказать рабочий гайд  с редактором АРМЫ 2 на сервер ЭПОЧ  добавление  объектов техники я попробовал один старый гайд выложенный  DrTauren   пробовал вот что в редакторе создавал объект далее в мой пк диск с \Documents\ArmA 2 Other Profiles\FatEgg\missions\misen14.Chernarus алее редактировал документ sqf  из миссии таким образам

                                                                                

if (isServer) then {
__vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1Bo_military", [6405.8687, 7911.7891, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setPos [6405.8687, 7911.7891, -3.0517578e-005];
};

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CamoNetVar_NATO_EP1", [6406.2603, 7911.6069, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setPos
};

_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["76n6ClamShell_EP1", [6394.0498, 7908.3262, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setPos [6394.0498, 7908.3262, 3.0517578e-005];
};

processInitCommands;

 

кидаю папку с файлом sqf в MPMissions и подключаю в инит sqf вот так [] execFSM "mision12\mission.sqf"; 

сервак стартует но объекта на карте нет это оккультный способ или что то делаю не так ?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Я подключаю так. 
файл "postroyka.sqf" c содержимым 
 

if (isServer) then {
_vehicle_5 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Ind_IlluminantTower", [3980.71, 11673.125, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_5 = _this;
  _this setPos [3980.71, 11673.125, -3.0517578e-005];
};

_vehicle_7 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Mil_Barracks_i", [4041.8882, 11640.502, -0.17892332], [], 0, "CAN_COLLIDE"];
  _vehicle_7 = _this;
  _this setDir -177.40422;
  _this setPos [4041.8882, 11640.502, -0.17892332];
};
};

размещаю по пути: Dayz_server_Chernarus\@DayZ_Epoch_Server\addons\dayz_server\Map
в init подключаю: 
 

//  Постройки    //проверка, что вызван 1 файл 1 раз
if (isNil "JustOneTime") then {
    JustOneTime = true;

call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\green.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\bash.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\klen.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\kumirnya.sqf";
};

А вообще прикладывай логи

Edited by Horus (see edit history)

Share this post


Link to post
Share on other sites
MagicByte MagicByte MagicByte
  • 0
45 минут назад, Horus сказал:

Я подключаю так. 
файл "postroyka.sqf" c содержимым 
 

if (isServer) then { _vehicle_5 = objNull; if (true) then { _this = createVehicle ["MAP_Ind_IlluminantTower", [3980.71, 11673.125, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setPos [3980.71, 11673.125, -3.0517578e-005]; }; _vehicle_7 = objNull; if (true) then { _this = createVehicle ["MAP_Mil_Barracks_i", [4041.8882, 11640.502, -0.17892332], [], 0, "CAN_COLLIDE"]; _vehicle_7 = _this; _this setDir -177.40422; _this setPos [4041.8882, 11640.502, -0.17892332]; }; };


if (isServer) then {
_vehicle_5 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Ind_IlluminantTower", [3980.71, 11673.125, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_5 = _this;
  _this setPos [3980.71, 11673.125, -3.0517578e-005];
};

_vehicle_7 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Mil_Barracks_i", [4041.8882, 11640.502, -0.17892332], [], 0, "CAN_COLLIDE"];
  _vehicle_7 = _this;
  _this setDir -177.40422;
  _this setPos [4041.8882, 11640.502, -0.17892332];
};
};

размещаю по пути: Dayz_server_Chernarus\@DayZ_Epoch_Server\addons\dayz_server\Map
в init подключаю: 
 

// Постройки //проверка, что вызван 1 файл 1 раз if (isNil "JustOneTime") then { JustOneTime = true; call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\green.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\bash.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\klen.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\kumirnya.sqf"; };


//  Постройки    //проверка, что вызван 1 файл 1 раз
if (isNil "JustOneTime") then {
    JustOneTime = true;

call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\green.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\bash.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\klen.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\Map\kumirnya.sqf";
};

А вообще прикладывай логи

спасибо 

 

Share this post


Link to post
Share on other sites
  • 0
7 часов назад, Horus сказал:

call compile preprocessFileLineNumbers

а путь может быть просто таким "z\addons\dayz_server\Map\green.sqf"; ?

Share this post


Link to post
Share on other sites
  • 0

Каким таким? Путь у тебя может отличаться, все зависит от того, где файлы у тебя лежат

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Поддержка