Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more


Exile: Custom Editor Addons


tbsthug

Recommended Posts

We at TBsGaming have a Exile server with Survival Servers. I know how to Arma 2 script, but just getting started with Arma 3.

I have made a custom editor addon sqf file. It is called hilltop_base.sqf. Can someone tell me where on client side I would put it. I can make it just dont know where to put it lol. Also where would I put the command line that points to that file?

 

I know in Arma2 that I would put the sqf file in a folder called addons and in the init.sqf file I would put a command line at the very bottom and it would look like this:

[]execVM "addons\hilltop_base.sqf";

 

 

Share this post


Link to post
Share on other sites

In Exile you'll have to create an init.sqf in your mission pbo. Pretty simple.

 

if (isServer) then {
[]execVM "addons\hilltop_base.sqf";
};

Share this post


Link to post
Share on other sites

In Exile you'll have to create an init.sqf in your mission pbo. Pretty simple.

 

if (isServer) then {

[]execVM "addons\hilltop_base.sqf";

};

Thank you for the information. Having some server issues right now, will try tomorrow. 

Share this post


Link to post
Share on other sites

In Exile you'll have to create an init.sqf in your mission pbo. Pretty simple.

 

if (isServer) then {

[]execVM "addons\hilltop_base.sqf";

};

Let me ask, What file is activating the init.sqf? 

Share this post


Link to post
Share on other sites

Arma 2 and Arma 3 are very similar. The file named 'init.sqf' is executed automatically when the mission starts.

I think I followed your instructions, but I get kicked for BE script restriction #41

I looked in the BE filter folder and looked in script.log and found this:

scripts.log below
 
09.10.2015 19:15:41: Thug (107.145.45.220:2304) 0232a7b19a5b2aaf134bc8075df1cd8f - #41 " "mpmissions\__CUR_MP.altis\init.sqf"
if (isServer) then {
[]execVM "EDITOR_ADDONS\thugs_mb.sqf";
};"
 
Here is my command line and file below:
init.sqf has the following in it and is in the root of the mission side:
if (isServer) then {
[]execVM "EDITOR_ADDONS\thugs_mb.sqf";
};
 
in a folder named EDITOR_ADDONS which is in the root of the mission side, I have a file named thugs_mb.sqf
below is the content of the file:
private ["_objs"];
_objs = [
["Land_HBarrierBig_F",[9942.32,19335.8,-1.14354],270,[[-1,4.88762e-007,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9942.32,19351.5,-0.649429],275.727,[[-0.995008,0.0997935,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9943.98,19368.1,-1.03761],277.364,[[-0.991753,0.128166,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9943.96,19368,-0.143723],278.182,[[-0.989821,0.142316,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9982.88,19350.1,-0.125778],267.136,[[-0.998751,-0.0499589,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9983.06,19345.8,0.0293121],265.909,[[-0.997452,-0.071339,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9988.51,19356.2,-0.352051],270,[[-1,4.88762e-007,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9970.49,19374.5,-0.232925],176.318,[[0.0642162,-0.997936,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9963.76,19336.1,-0.493851],348.136,[[-0.205582,0.97864,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9958.61,19333.8,-0.625946],354.273,[[-0.0997928,0.995008,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9950.31,19333,-0.448349],176.727,[[0.0570889,-0.998369,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9945.89,19332.8,-0.61438],180,[[6.27833e-007,-1,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9947.86,19371.8,-0.166351],175.5,[[0.0784595,-0.996917,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9943.77,19427.9,-0.0570374],252.818,[[-0.955372,-0.295406,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9943.84,19427.9,-1.25017],252,[[-0.951057,-0.309017,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9937.71,19433.1,-0.0573425],226.636,[[-0.727011,-0.686626,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9931.61,19439.4,-0.00227356],226.227,[[-0.72209,-0.691799,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9925.38,19444.9,0.51297],220.5,[[-0.649448,-0.760406,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9918.1,19447.5,0.34343],182.045,[[-0.0356923,-0.999363,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9909.37,19447.4,-0.157654],182.455,[[-0.0428272,-0.999083,0],[-0,0,1]],false],
["Land_HBarrierBig_F",[9900.83,19447.2,-0.0439758],178.364,[[0.0285557,-0.999592,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9894.41,19443.7,0.352829],290.455,[[-0.93695,0.349464,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9889.06,19437.3,-0.259888],312.955,[[-0.731895,0.681418,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9889.1,19437.3,0.45433],312.136,[[-0.74155,0.670898,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9882.01,19432.5,-4.72507],162.818,[[0.295405,-0.955372,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9882.28,19432.5,-2.08701],164.045,[[0.274874,-0.96148,0],[0,-0,1]],false],
["Land_HBarrierBig_F",[9882.18,19432.4,-0.267578],345.273,[[-0.254217,0.967147,0],[0,0,1]],false],
["Land_HBarrierBig_F",[9882.1,19432.4,1.36099],346.091,[[-0.240382,0.970678,0],[0,0,1]],false],
["Land_HBarrier_1_F",[9861.79,19427.5,0],89.1818,[[0.999898,0.0142793,0],[0,0,1]],false],
["Land_HBarrier_1_F",[9869.47,19428.8,0],89.1818,[[0.999898,0.0142793,0],[0,0,1]],false],
["Land_HBarrier_1_F",[9852.28,19420.9,-0.228531],86.3182,[[0.997936,0.0642157,0],[0,0,1]],false],
["Land_HBarrier_1_F",[9843.5,19410.9,-0.252548],4.49997,[[0.0784586,0.996917,0],[0,0,1]],false],
["Land_HBarrier_1_F",[9856.21,19332.1,-0.344223],112.909,[[0.921123,-0.389271,0],[0,-0,1]],false],
["Land_HBarrier_1_F",[9883.01,19329,-0.442688],89.1818,[[0.999898,0.0142793,0],[0,0,1]],false]
];
 
{
private ["_obj"];
_obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
if (_x select 4) then {
_obj setDir (_x select 2);
_obj setPos (_x select 1);
} else {
_obj setPosATL (_x select 1);
_obj setVectorDirAndUp (_x select 3);
};
} foreach _objs;
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...