Hi
I want to write a Little plugin that just checks if you want to place a cupboard if there are any nearby other cupboards in a specific radius.
Is this possible? Maybe a Little advice?
Many thanks!
Check for nearby cupboards?
Discussion in 'Rust Development' started by [WS] SteckFisch, Feb 19, 2016.
-
Wulf Community Admin
Moved to Rust section, as Legacy doesn't have cupboards.
-
Ops sorry. Thank you.
Can you help me with that maybe? -
Wulf Community Admin
You could take a look at existing plugins that deal with cupboards, such as CupboardRadius. -
I already did. Bit there is only a possability to update the attributes of existing Buildprivilige Triggers and Switch if influence Counts or not. But have no idea how do query a Trigger (try to place a entity) and then also check if another type of entitiy is in its area....
[DOUBLEPOST=1456152420,1455924219][/DOUBLEPOST]Anyone? -
Calytic Community Admin Community Mod
There is no known method for finding triggers or entities specifically within a cupboards influence radius.
The issue is that the cupboards use a cone mesh by default. The only available physics queries are for a cube and a sphere.
If one of the more experienced Unity developers wants to prove me wrong, please do.
![[WS] SteckFisch](/assets/styles/oxide/logo.og.png)