ka0s 457 Report post Posted October 7, 2015 Hi. So I figured that I would run some events on my server once in a while, and therefore I would build a custom event area, however in the event area I do not want anybody to be able to build there, how would I do that? The area I'm talking about below: Share this post Link to post Share on other sites
canuckbrian 63 Report post Posted October 7, 2015 I would be interested in knowing how to blacklist area's to prevent building as well. Share this post Link to post Share on other sites
Santa 20 Report post Posted October 7, 2015 Something like this should doAltering ExileClient_object_item_construct.sqf_radius = X; //amount of meters from center nonBuildZoneif ((player distance [Y, Z, 0]) < _radius) then { throw "Error, Error, peep peep"; };Then create a custom error at the botom of the file. 1 Share this post Link to post Share on other sites
Omen 35 Report post Posted February 5, 2016 On 10/7/2015 at 2:55 PM, Santa said: Something like this should do Altering ExileClient_object_item_construct.sqf _radius = X; //amount of meters from center nonBuildZone if ((player distance [Y, Z, 0]) < _radius) then { throw "Error, Error, peep peep"; }; Then create a custom error at the botom of the file. I am still really new to scripting and the file confuses me a lot. Is it possible to lay out the steps to do this keeping in mind that I know very little and am learning by example? Thanks in advance Share this post Link to post Share on other sites
Nutt 0 Report post Posted February 10, 2016 Was wondering the same! Please please!@? Share this post Link to post Share on other sites
Omen 35 Report post Posted February 10, 2016 (edited) @Santa I got this kind of working. I can prohibit people from building in one defined area but I am stuck on the error message. Getting Invalid cfgnotification error. How do I define a custom error message. Also, how would I go about throwing multiple coordinates into an array? Edit: got arrays working but still stuck on working notification messages. I cant wrap my head around it or see any examples in the file. Edit 2: Got notifications working but they are white. Still trying to make them pop in ad red notifications. Here is where I edited the file in case anyone else has issues like me and doesn't want to spend hours trying to figure something like this out. Spoiler catch { if(_exception isEqualTo "ConstructionAbortedInformation")then{ [_exception,"Restricted Area"] call ExileClient_gui_notification_event_addNotification; }else{ [_exception] call ExileClient_gui_notification_event_addNotification; }; }; Edited February 10, 2016 by Omen Share this post Link to post Share on other sites