Declaración
func SwitchWeapon(target entity<Player>, slot SwitchEquipSlot, out var isSuccess bool)
go
Parámetros
Entrada
Nombre | Tipo | Descripción |
---|---|---|
Target | Player | Target Player |
Slot | SwitchWeaponEquipSlot | The weapon slot to switch to |
Afuera
Nombre | Tipo | Descripción |
---|---|---|
Is Success | Bool | Whether the switch is successful. If there is no weapon equipped in the weapon slot, the switch will fail. |