BaseEntity GetItem() null
Discussion in 'Rust Development' started by Werkrat, Nov 4, 2016.
-
Not all entities (very few last time I checked) have their corresponding item information available for you to grab. Afaik the only solid method for getting item information is by storing entity prefab names with information such as a shortname of their item counterparts. Ideally you would do this when the plugin loads and have the information sitting there for you to use.
-
I'm trying to work with deployables, entity.GetComponentInParent<Deployable>() doesn't seem to work anymore, either. I just want to get the id of the deployable so I can use GiveItem.
