Declaration
func DestroyEquipment(target entity<Player>, slot EquipmentType, count int, out var isSuccess bool)
go
Parameters
Input
Name | Type | Description |
---|---|---|
Target | Player | Target Player |
Slot | EquipSlotType | Weapon slot to destroy |
Count | Int | The number to destroy |
Out
Name | Type | Description |
---|---|---|
Is Success | Bool | Whether the destruction is successful. If there is no weapon equipped in the weapon slot, the destruction will fail. |