juandayz Posted December 9, 2016 Report Share Posted December 9, 2016 scet27, SideShowFreak, Joshyy and 2 others 5 Link to comment Share on other sites More sharing options...
Liquid84 Posted December 10, 2016 Report Share Posted December 10, 2016 Great work, @juandayz juandayz 1 Link to comment Share on other sites More sharing options...
jimmy565 Posted January 2, 2017 Report Share Posted January 2, 2017 Hey @juandayz , What if i had more than one item would i do && {type != "YOUR OBJECT ID","YOUR OBJECT ID"}) then { or would i do something else Link to comment Share on other sites More sharing options...
juandayz Posted January 3, 2017 Author Report Share Posted January 3, 2017 On 2/1/2017 at 8:54 AM, jimmy565 said: Hey @juandayz , What if i had more than one item would i do && {type != "YOUR OBJECT ID","YOUR OBJECT ID"}) then { or would i do something else more than 1 object do you say- you will need a variable.sqf then find DayZ_SafeObjects = above paste: DZE_CUSTOMOBJECTS = ["ALL","YOUR","OBJECTS"]; now into DayZ_SafeObjects = change by: DayZ_SafeObjects = DZE_CUSTOMOBJECTS + ["the others default objects from epoch",""]; now go to your server_monitor.sqf find: _isPlot = _type == "Plastic_Pole_EP1_DZ"; bellow paste _isCustomObjects = _type in DZE_CUSTOMOBJECTS; Now find: if( (count _inventory > 0) && !_isPlot && !_doorLocked) then { change by: if( (count _inventory > 0) && !_isPlot && !_doorLocked && !_isCustomObjects) then { hope it help you jimmy565 and gernika 2 Link to comment Share on other sites More sharing options...
jimmy565 Posted January 5, 2017 Report Share Posted January 5, 2017 You my friend are a legend thank you Link to comment Share on other sites More sharing options...
gernika Posted March 29, 2017 Report Share Posted March 29, 2017 gonna try it. its just that i was looking for Link to comment Share on other sites More sharing options...
NateDayZ Posted May 27, 2017 Report Share Posted May 27, 2017 Hi, How do I put this on my server? Where do I put the script you made? Link to comment Share on other sites More sharing options...
juandayz Posted May 27, 2017 Author Report Share Posted May 27, 2017 9 minutes ago, NateDayZ said: Hi, How do I put this on my server? Where do I put the script you made? this is an example.. you can call it from fn_selfactions or with right click actions... what do you want to make with this? Link to comment Share on other sites More sharing options...
NateDayZ Posted July 24, 2017 Report Share Posted July 24, 2017 Hi, am I able to make it so the object saves to database, only works on your plotpole and only player who made object can remove it? Link to comment Share on other sites More sharing options...
juandayz Posted August 22, 2017 Author Report Share Posted August 22, 2017 On 24/7/2017 at 1:32 AM, NateDayZ said: Hi, am I able to make it so the object saves to database, only works on your plotpole and only player who made object can remove it? yes, you need add a restriction for check nearest poles and in configvariables you have an option to restrict some objects from being be removed. DZE_restrictRemoval = ["your object id","the rest of default objects"]; pole restriction: _playerPos = getPosATL player; _nearRestr = count nearestObjects [_playerPos, ["Plastic_Pole_EP1_DZ"], 27] > 0; if !(_nearRestr) exitWith { DZE_ActionInProgress = false; cutText [format["Needs be in plot pole area"], "PLAIN DOWN"]; }; Link to comment Share on other sites More sharing options...
NateDayZ Posted August 22, 2017 Report Share Posted August 22, 2017 2 hours ago, juandayz said: yes, you need add a restriction for check nearest poles and in configvariables you have an option to restrict some objects from being be removed. DZE_restrictRemoval = ["your object id","the rest of default objects"]; pole restriction: _playerPos = getPosATL player; _nearRestr = count nearestObjects [_playerPos, ["Plastic_Pole_EP1_DZ"], 27] > 0; if !(_nearRestr) exitWith { DZE_ActionInProgress = false; cutText [format["Needs be in plot pole area"], "PLAIN DOWN"]; }; Thank you :) Link to comment Share on other sites More sharing options...
NateDayZ Posted August 22, 2017 Report Share Posted August 22, 2017 Hi, Objects are still not being saved to the database. Is this just me with this problem? Link to comment Share on other sites More sharing options...
juandayz Posted August 23, 2017 Author Report Share Posted August 23, 2017 Just now, NateDayZ said: Hi, Objects are still not being saved to the database. Is this just me with this problem? please paste how do you do it. step by step Link to comment Share on other sites More sharing options...
NateDayZ Posted August 23, 2017 Report Share Posted August 23, 2017 4 minutes ago, juandayz said: please paste how do you do it. step by step Server_monitor if( (count _inventory > 0) && !_isPlot && !_doorLocked && {_type != "MAP_kulna"}) then { I put the script in my mission folder and I call it with right click actions on toolbox ["ItemToolbox","Build kulna","execVM 'addons\kulna.sqf';","true"], When I go ingame and right click my toolbox I am able to build the kulna but when I restart the server it is gone and I do not see it in the database. Link to comment Share on other sites More sharing options...
juandayz Posted August 23, 2017 Author Report Share Posted August 23, 2017 Just now, NateDayZ said: Server_monitor if( (count _inventory > 0) && !_isPlot && !_doorLocked && {_type != "MAP_kulna"}) then { I put the script in my mission folder and I call it with right click actions on toolbox ["ItemToolbox","Build kulna","execVM 'addons\kulna.sqf';","true"], When I go ingame and right click my toolbox I am able to build the kulna but when I restart the server it is gone and I do not see it in the database. are you missing this entry in custom variables.sqf? DayZ_SafeObjects = ["YOUR OBJECT ID","the others default objects from epoch",""]; Link to comment Share on other sites More sharing options...
NateDayZ Posted August 23, 2017 Report Share Posted August 23, 2017 My mistake, sorry about that. Thanks you :) juandayz 1 Link to comment Share on other sites More sharing options...
NateDayZ Posted September 4, 2017 Report Share Posted September 4, 2017 Hey Juan I have two issues could you help :)? https://pastebin.com/mYP7My40 When placing the object it says "Placing "OBJECT" move to cancel" but I can not cancel even if I move. Another thing is when there is no plot pole in the area it says "Needs be in plot pole area" which is fine but then when you try again it says "building already in progress" and you cannot build anything until relog. Link to comment Share on other sites More sharing options...
NateDayZ Posted September 4, 2017 Report Share Posted September 4, 2017 I fixed the second problem I mentioned above, still having issues with the moving to cancel. DZE_ActionInProgress = false; needed to be dayz_actionInProgress = false; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now