Code is bleeding from several points.
def On_Crafting(self, CraftingEvent):
Plugin.Log("Gun", CraftingEvent.Player.Name + " is making " + CraftingEvent.ResultItem.name)
CraftingEvent.Player.MessageFrom("test", "Debug: " + CraftingEvent.ResultItem.name)
if...
No, sorry, missfired.
public string ItemName
{
get { return _block.name; }
}
public ItemDataBlock ResultItem
{
get { return _block.resultItem; }
}
If you use ItemName you will receive the Blueprint's name
If you use ResultItem.name you will receive the ItemDataBlock name
That seems like a client side method that loops through all of the lootableobjects and checks if you are looting any.
That would require to call something on the server. What are you trying to achive with the click event?
If you are really interested to join and try to make RB better hit me up on discord tomorrow, i will be fixing stuffs in the morning probably. We will talk about your intentions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.