nivex submitted a new resource:
BuildRevert - Prevent building in blocked area.
Read more about this resource...
BuildRevert
Moved
Total Downloads: 718 - First Release: May 12, 2017 - Last Update: Jan 12, 2018
- 5/5, 5 likes
-
Grats. Way better solution then mine =D
-
Wulf Community Admin
-
-
@Vlad-00003 how does this differ from your solution?
-
nivex updated BuildRevert with a new update entry:
0.1.1
-
-
Wulf Community Admin
-
It even uses the same radius as mine....
-
Edit1:
@nivex you made some valid points, therefore switching for now.Last edited by a moderator: May 13, 2017 -
This allows you to block each construction type instead of all of them; including ladders. I spent 20 minutes figuring out that radius by determining how close I could get the block to the priv before they met. I also put the radius in the center of where the building plan is placed on your screen (where the object will be built) to reduce error. A quick comparison of yours shows that yours isn't adjusted to the center of the screen, but veers off left about 25 degrees.
I don't care what code of mine you use. This forum is for the community. -
@nivex 1 thing, when i allow everything to be placed, it still says "Building blocked" but you can place it, maby only say "BuildingBlocked" if you can't place it.. (Also can you allow us to edit the message and add formatting to it, for example "NotAllowedMessage": "<color=red>BuildingBlocked</color>")
Another thing, when you are not allowed to place something such as a foundation, instead highlight it red, compared to the default orange. -
-
don't worry about the color thing i mentioned, pretty sure its a function built into rust for example this(Should work.):
{
"Building is blocked!": "<color=red>BuildingBlocked</color>"
}
edit: i sorry i misread that completely (Like i said it's late xD) you know when you have a building plan out the item you want to place is highlighted orange? i would like to be to RED if you are NOT allowed to place it -
I fixed the bug. I'll make the text red by default, but if you've already used the plugin then you'll need to delete the language file or edit it. I'll see about the orange highlight then post an update.
-
nivex updated BuildRevert with a new update entry:
0.1.2
-
Wulf Community Admin
-
I will do further testing today when i have time, cheers guys.
-
Good stuff, working perfect now, would be amazing if you could do what i said above where if you not allowed to place something the thing you're trying to place will be red instead of orange. (If you need visual help i can show you if you like?)
-
Good to know. I know what you're talking about, but I couldn't figure out how to do it. :|