Hello, is there a way to see whatever a player is crafting or not?
Check if player is crafting? (C#)
Discussion in 'Rust Development' started by Hovmodet, Jun 16, 2015.
-
Wulf Community Admin
Yes, check their crafting queue. I don't know how to do it in C#, but for Lua:
Code:if player.inventory.crafting.queue.Count >= 1 then
-
C# example:
Code:if (player.inventory.crafting.queue.Count >= 1) { //do stuff }
-
C#
Code:if ( player.inventory.crafting.queue.Count > 0 ) {}