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.
I used this code but now I can only build 1 panel. So I deleted that part of the code but I can still only build 1 panel. Has anyone else had this problem?Try to change the player_build.sqf the following:
above this
Code:// Send to database _fuel = _code / 1000; //added to calculate valid fuel value for the database _object setVariable ["characterID",dayz_playerUID,true]; dayzPublishObj = [dayz_playerUID,_object,[_dir,_location],_classname,_fuel,_code]; //added _code to pass to the publishObj function to prevent calculation errors publicVariableServer "dayzPublishObj"; if (isServer) then { dayzPublishObj call server_publishObj; };
add this
Code://Check if other panels nearby _panelNearest2 = nearestObjects [player, ["Infostand_2_EP1"], 300]; if (_classname == "Infostand_2_EP1" && (count _panelNearest2 > 1)) then { deleteVehicle _object; cutText ["Only 2 gate panels per base in a 300 meter radius!", "PLAIN DOWN"];call _funcExitScript;};
Didn't tested this and I'm really really tired. But this could maybe work and would punish the one who try to abuse this, because the materials would be deleted but nothing is build and sent to database, cause it checks between removing the materials and sending to database again whether there is an Info Panel nearby and if there is one it will delete the object and exit the script.
I used this code but now I can only build 1 panel. So I deleted that part of the code but I can still only build 1 panel. Has anyone else had this problem?
(count _panelNearest2 > 1)
@Johnkok - Changing that number to 2 will allow 3 panels to be set down.
This is because the test to see if there is more than 1 panel down, is completed before the second panel is allowed down. Because we do not currently have 2 panels on the ground, then this test comes back false and allows it to build the second. If there were two panels on the ground then it would not allow a third.
(count _panelNearest2 >= 2)
@Johnkok Give this a try, I know its pretty much the same, but i'm stumped.
I have been reading through the BI wiki, and from reading some more code have not found a solution for you. Please let me know what your findings are. I will setup a test server in the meantime.Code:(count _panelNearest2 >= 2)
I have the exact same problem as this guy. The menu won't show up. I've double-checked everything.Could someone please help me? ive followed the tutorial added everything it says loaded it onto the server, i can load in it doesnt crash, but i cant get the menu to show, i tried turning off anti hacks and such.. ive got heaps of other scripts to work on my server.. just having a little trouble with this one..
im using a dayz.st server
I managed to get it to work on my dayz.st server just fine just one issue is the menu is coming up then closeing so no one but admins can build dunno whats causing it gonna reread the post and see if I can find the answerI have the exact same problem as this guy. The menu won't show up. I've double-checked everything.
How did you do it?I managed to get it to work on my dayz.st server just fine just one issue is the menu is coming up then closeing so no one but admins can build dunno whats causing it gonna reread the post and see if I can find the answer
Did you do it exactly as the tutorial said or did you do something different? Because I have triplechecked all files and I can't find anything wrong. I went through the tutorial assuming I have the reality pack, is this correct if I use dayz.st? Is there anything special I need to do in-game to be able to scroll and see the menu option?just followed the directions I did have to change one of the addperamitors cause my fnc_action script is in a different folder