How to get tool cupboard for structureSolved

Hi all,

Just starting to work on a plugin and have a question about using BaseCombatEntity (from OnEntityTakeDamage). What method(s) would you use to go from an entity like a wall to getting the tool cupboard that governs it?

Thanks

use "GetBuildingPrivilege()"

That worked perfectly. Thank you!

A follow up question though. Is there any documentation explaining classes and their methods?

There isn't any documentation for Rust methods and classes, however you can find this by decompiling Assembly-CSharp.dll with a program like dnSpy or dotPeek.

That is very helpful. Thank you!

Locked automatically