Is it possible to tell if a player has build privileges inside a tool cupboard area, but by using either a position or another entity. I am making a custom structure building plugin and i don't want people to be able to build from outside a toolcupboard radius going inside of it.
Build permission from position/entity
Discussion in 'Rust Development' started by ツンデレラ, Oct 18, 2017.
-
You can get the build privilege directly from the player by doing:
Code:player.GetBuildingPrivilege();
-
-
Ah, assuming you know the position (via raytrace or something) you can use the static getter:
Code:// Vector3 position, Quaternion rotation, Bounds bounds BuildingPrivlidge.Get(position, rotation, bounds);
-
-