Declaration
func SwitchWeapon(target entity<Player>, slot SwitchEquipSlot, out var isSuccess bool)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Target | Player | Target Player |
| Slot | SwitchWeaponEquipSlot | The weapon slot to switch to |
Out
| Name | Type | Description |
|---|---|---|
| Is Success | Bool | Whether the switch is successful. If there is no weapon equipped in the weapon slot, the switch will fail. |