声明 func SwitchWeapon(target entity<Player>, slot SwitchEquipSlot, out var isSuccess bool) go 参数 输入 名称 类型 描述 目标 Player 目标玩家 槽位 SwitchWeaponEquipSlot 要切换的武器槽位 输出 名称 类型 描述 是否成功 Bool 是否成功切换,武器槽位上没有装备武器时会切换失败