Switch Weapon

Items
Lado del servidor
Disponible en PC y móvil

Switch the player's weapon to the weapon in the specified slot

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.